You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not quite sure what setLocationManager() is used for?
Assuming the user has granted location permission Always and the App goes into the background. When I use <UserLocation /> and the map screen is not unmounted (which is pretty common for a i.e. <TabNavigator />, it will constantly monitor the users location, eventhough the user has put the App into the background. This is not what I want. I only want to monitor the users location once the App is active/actually opened. Can I use setLocationManager() to turn this behaviour off?
Additionally, I am not sure how to use setLocationManager(). It is a method <Mapbox.UserLocation />, but how to trigger it?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am not quite sure what
setLocationManager()
is used for?Assuming the user has granted location permission
Always
and the App goes into the background. When I use<UserLocation />
and the map screen is not unmounted (which is pretty common for a i.e.<TabNavigator />
, it will constantly monitor the users location, eventhough the user has put the App into the background. This is not what I want. I only want to monitor the users location once the App is active/actually opened. Can I usesetLocationManager()
to turn this behaviour off?Additionally, I am not sure how to use
setLocationManager()
. It is a method<Mapbox.UserLocation />
, but how to trigger it?Beta Was this translation helpful? Give feedback.
All reactions