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

Callback to decide if a certain URL should be loaded #14

Open
stefan-scholl opened this issue Oct 9, 2017 · 1 comment
Open

Callback to decide if a certain URL should be loaded #14

stefan-scholl opened this issue Oct 9, 2017 · 1 comment

Comments

@stefan-scholl
Copy link

iOS has webView:shouldStartLoadWithRequest:navigationType: which can be used to deny loading if you don't want to follow a URL.

One of the possible uses: This could be used to communicate some state from within the webview. You parse the request and deny loading so the current page stays the same.

@lejard-h
Copy link
Collaborator

In the next release 0.0.10 we will be able to listen for state changed, but we won't be able to block url except by scheme http, https, about (only on iOS)

Since communication with dart side and native side are asynchrone, we won't be able to execute a function on dart side.

Maybe we can use a regexp to match url we want, any idea ?

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

2 participants