Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

iOS onLoadResource no longer works for requested local resources #58

Closed
alsocalledchris opened this issue Mar 11, 2019 · 6 comments
Closed

Comments

@alsocalledchris
Copy link

alsocalledchris commented Mar 11, 2019

onLoadResource method for InAppBrowser is not hit if the resource being requested is local (e.g. http://localhost being hosted by InAppLocalhostServer) this worked in 0.5.51.

@alsocalledchris
Copy link
Author

shouldOverrideUrlLoading is not hit at all anymore on iOS

@alsocalledchris
Copy link
Author

onLoadResource is not called if the resource is local either (external requests work fine)

@pichillilorenzo
Copy link
Owner

I'm not able to reproduce your problem!

Are you sure that you have set to true the needed options?

{
    "useShouldOverrideUrlLoading": true,
    "useOnLoadResource": true
}

Otherwise, can you give me the code that is not working? For example you can create a repository with the sample code that is not working! Thanks

@alsocalledchris
Copy link
Author

Tested again and it was due to a server side redirect (302) that was not being picked up with shouldOverrideUrlLoading. Using onLoadStop which catches it instead.

@pichillilorenzo
Copy link
Owner

Ok, I need to investigate more on this! Thanks

This was referenced Jul 6, 2020
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants