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

webview javascript navigator.geolocation.getCurrentPosition never resolve #599

Closed
laf1greg opened this issue May 25, 2019 · 2 comments
Closed

Comments

@laf1greg
Copy link

My android app successfuly ask for geolocation permission and it is granted but when javascript code from website in webview calls navigator.geolocation.getCurrentPosition nothing happens, neither resolve nor reject.

"react": "16.8.3",
"react-native": "0.59.8"
"react-native-webview": "5.9.1"

@laf1greg
Copy link
Author

ok seems to be a problem with RN and related to this facebook/react-native#7495 (comment)

@laf1greg
Copy link
Author

It seems that for geolocation we need to use this: https://github.com/Agontuk/react-native-geolocation-service
I manage to make it work on a motorola G3 and xiaomi Mi2 lite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant