-
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
webview_flutter 0.3.4 Flutter: Web view application only a particular website(main url) run in the application, others open in local browser of phone #347
Comments
Check my fork: https://github.com/hnvn/flutter_webview_plugin, use |
@hnvn How exactly can I implement this in my project? |
Done |
Thank you, I will test it today and merge if it's alright. |
@charafau is the feature added in the main package? I am still not exactly sure how can I implement this in my app. |
Did you solved this? |
@amankataria @AlejandroC90 yes it's part of main package (in 0.3.2) PRs was only for restricting urls to be loaded. Write your regex and and check if your url is validated, when open webview (with restriction so user wont redirect to custom domains) otherwise open browser with url_launcher plugin |
I have a web view application in Flutter. The plugin/package is "flutter_webview_plugin". In Webview Scaffold, I have url= 'www.google.com'. Now I want that any URL which doesn't contain "google.com" opens in the local browser of the phone.
Maybe if I can restrict the Web view plugin if URL doesn't contain "google.com"
Please let me know how can I achieve this.
Here is my code:
Further Clarification: I have a web view application. So the website that I have, has a lot of links in it. I don't want links other than my domain links to load in webview app. I want it to open externally.
Link to issue first reported: https://stackoverflow.com/questions/55125577/flutter-web-view-application-only-a-particular-website-run-in-the-application
The text was updated successfully, but these errors were encountered: