Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

IOS - JS scripts calls considered as user actions In OnStateChanged listener #448

Closed
Jokernight opened this issue Jun 12, 2019 · 1 comment

Comments

@Jokernight
Copy link

Hello,

I have a main WebView file and a WebViewController file which contains some verifications to intercept some specific calls or open the external browser if the url is not in the authorized websites within the app.

To do so, I use the listener OnStateChanged. On iOS all the JS scripts are considered as user actions and triggers the listener for every script. It doesn't do it on Android though.

Can someone help or has already resolved this issue ?

Thanks.

@Jokernight
Copy link
Author

Alright I found the solution.
The listener always call shouldStart on iOS but doesn't go the startLoad state for the scripts, so i moved my controller call if it's a startLoad event. I close the issue. Sorry for the inconvenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant