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

react-native-fused-location not working in Android Oreo 8.0

Open vishwesh1010 opened this issue 6 years ago • 7 comments

Hi there! I am using react-native-fused-location in my Project and its working fine on Android <=7.1 but when I am running it on Android Oreo 8.0 it is not giving me speed and bearing values..!! It is giving perfect values of latitudes and Longitudes but always giving values of speed and bearing zero !! Thank you in Advance!

vishwesh1010 avatar Jun 23 '18 04:06 vishwesh1010

Hi @vishwesh1010! Did you verify this on a phone or inside a simulator? Also, did you move around and verify this thoroughly if you tried on an actual phone? Also, were you using a mock location when you conducted this test?

MustansirZia avatar Jun 23 '18 05:06 MustansirZia

@MustansirZia I verifed it on real device and also tried moving around with it but still getting the values of bearing and speed zero ,it is giving me perfect values of latitudes and longitudes.. Also we are not using mock location

vishwesh1010 avatar Jun 23 '18 12:06 vishwesh1010

Exactly same issue here. Not getting speed and bearing values on MotoG6(Oreo 8).But working completly fine on MotoG5S Plus(Nougat 7.1 )

PAWAN-PRAJAPATI avatar Jun 23 '18 12:06 PAWAN-PRAJAPATI

@vishwesh1010 @PAWAN-PRAJAPATI Okay. Understood. I will try to dig inside this a bit more to see what issues we face inside Android Oreo. There could have been an API depreciation or a limitation set by Google.

MustansirZia avatar Jun 25 '18 06:06 MustansirZia

@MustansirZia react-native-fused-location is working fine the problem was with the location permission. From SDK 23 onwards android introduced new permission model, but I was still using targetSdkVersion 22 in my project, changing it to 23 worked for me. I'm extremely sorry for the trouble. It was all my fault. Library is working perfectly fine.

PAWAN-PRAJAPATI avatar Jul 04 '18 11:07 PAWAN-PRAJAPATI

@PAWAN-PRAJAPATI close the issue then?

henrikra avatar Jul 16 '18 09:07 henrikra

@PAWAN-PRAJAPATI what you have changed?

rendomnet avatar Oct 07 '18 08:10 rendomnet