timfpark / react-native-location

React Native plug-in that provides GPS location information
MIT License
882 stars 208 forks source link

RNLocation.getLatestLocation({timeout:6000}) return null after timeout on IOS 13.4 #130

Open beqramo opened 4 years ago

beqramo commented 4 years ago

After updating my simulator to IOS 13 getLatestLocation returns me null, permissions configured correctly( All granted). but subscribeToLocationUpdates function works.(I know that there is another bug that u can't use both subscribeToLocationUpdates and getLatestLocation al the same time).

DiegoMac95 commented 4 years ago

@beqramo were you able to solve this?

beqramo commented 4 years ago

@DiegoMac95 sometimes it happens to me but sometimes not, I don't understand, I think it's bug. I went deep down to the codes but I didn't find any suspicious function and I thing it is on native side bug and I don't know to much about native ios.

and also I think this should be reopened

Hard-Haad commented 4 years ago

@beqramo experiencing this on android, with react-native-location version 2.5.0 and react-native version 0.62.2. It's like you described sometimes it happens and sometimes it does not, however I have seen that if I change my app's location permission to AlwaysOn then it goes away.