react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[WebView] [Android] Geolocation does not work inside a WebView, the permission request popup never opens

Open anna-gladushko opened this issue 10 years ago • 4 comments

Further improvement for https://github.com/facebook/react-native/commit/f94abd3c012bd89b35b6a8165ffce1037c36cef2 is suggested:

webView.setWebChromeClient(new WebChromeClient() { public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermissions.Callback callback) { callback.invoke(origin, true, false); } });

More details: http://stackoverflow.com/a/5423026

anna-gladushko avatar May 18 '16 03:05 anna-gladushko

Can you submit a pull request?

danielbraun avatar Jul 02 '16 15:07 danielbraun

I also ran across this problem :/

bbay avatar Jul 08 '16 10:07 bbay

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/webview-android-geolocation-does-not-work-inside-a-webview-the-permission-request-popup-never-opens

Product Pains has been very useful in highlighting the top bugs and feature requests: https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.

mkonicek avatar Oct 27 '16 22:10 mkonicek

this issue still occurs

spearmootz avatar Jan 02 '18 18:01 spearmootz