-
Notifications
You must be signed in to change notification settings - Fork 936
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
enable Javascript in iOS, support abort loading specific URLs #292
Conversation
Synchronize my fork to original repository
Looks to be perfect answer to most of the problem we are having with this plugin. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enabling Javascript in iOS works as expected but for some reason it doesn't block URL redirection - at least when I click on twitter logo on flutter website, it gets redirected. Tested on iOS simulator
The |
Have a look at: #292 (comment) |
How should I stop the loading tho? using
Thanks |
@Raggaer Did you solve this problem? Facing the same issue… |
@yorickreum I could not solve this sadly. Hopefully someone has some information to share with us |
My approach today was to listen to the state change (load abort event). This kind of works, it only gets fired twice (not once), that's quite annoying... |
Still no solution... |
@yorickreum , yes, please use onStateChanged method available, you can use state.type == WebViewState.shouldStart to listen it for once only. Please see this. |
enable Javascript in iOS, support abort loading specific URLs
I create this pull request to give WebView few features:
shouldOverrideUrlLoading
in Android andwebView:decidePolicyForNavigationAction:decisionHandler
in iOS