Closed junaidrazaq closed 2 years ago
showsBackgroundLocationIndicator: false
should solve this issue.
Doesn't work. I have version 5.0.0, maybe that's why? I will try to upgrade and let you know if that works, Thanks
Nope, same issue on version 5.2.2. IOS btw
You have to enable location updates capability for your app in Xcode.
Open Xcode
Now you can use the watchPosition function and then when your app go to background the blue bar appears (THE AUTHORIZATION LEVEL MUST BE "always")
I think that to collect the coordinates in background mode, it only works for iOS... for android it doesn't... I think that for that case you have to resort to another library that is paid
Setting showsBackgroundLocationIndicator: false
will only work if you're using always
authorization. If you're using whenInUse
authorization, it'll always show the blue bar. I hope it clears the confusion.
I'm using the watchPosition function and the location is being tracked successfully, but for some reason, the location is being tracked in the background also. I don't mind this but the blue bar is showing on the top when the app is in the background. How could i go about removing this? Thanks
` handlePermission = async unmount => { let isGranted;