-
Notifications
You must be signed in to change notification settings - Fork 208
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
getLatestLocation() always returns null, subscribeToLocationUpdates never fires #138
Comments
Update on my issue: I was able to solve it, by changing the initialisation for android: |
According to android docs you can see:
|
@seyaobey I am sorry, but I still get this error even I twitched setting to 'fine' in android. |
@seyaobey I think the issue is you are making those two requests at the same time.
This code is dispatching both the |
Don't use this repo because of this issue. Please refer to: https://www.npmjs.com/package/react-native-get-location It works fine. |
I am encountering the behaviour described in the above title for certain models on samsung devices. I can't tell if it is something wrong I'm doing with the library or it is the device.
I have properly followed the guidelines to install this library in my react-native application. The user is prompted to grant the location permission and he grants it to the app. Here is the initialisation and the subscription ode:
package.json:
build.gradle
My code works perfectly well in an old
Samsung J7 model (2015)
:But the location returned is not correctly in a
Samsung J2 core (2018)
:In both cases, the location permission is properly granted and gps location is enabled in both devices.
Thank you for your library. I hope you may help me to find out what I may do wrong or where I should start looking at.
The text was updated successfully, but these errors were encountered: