flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

Permission prompt appears twice

Open holailusoria opened this issue 2 years ago • 1 comments

Hi. I'm using the last version(5.4.3) of inappwebview plugin. I am running a webview locally(without local server). When permission is required for geolocation, the request is duplicated twice. As far as I understand, the first request is directly for the app, and the second for the webview.

How can I get rid of that second request ? Because it sure isn’t great UX…

Below are screenshots of what it looks like. image image

I found the same article for WKWebView on IOS. But I couldn't figure out how to implement it in Flutter.

https://stackoverflow.com/questions/39665367/how-to-prevent-wkwebview-to-repeatedly-ask-for-permission-to-access-location

holailusoria avatar Jun 29 '22 07:06 holailusoria

👋 @holailusoria

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Jun 29 '22 07:06 github-actions[bot]

@holailusoria Ich have the same problem with react-native-webview. Any solution?

lehmannphi avatar Nov 03 '22 19:11 lehmannphi

same problem. Any solution?

2000calories avatar Jun 20 '23 03:06 2000calories