Now I switched it to:
accuracy: LocationAccuracy.Lowest,
pausesUpdatesAutomatically: true,
activityType: LocationActivityType.Other,
But as you can see, when I have the Location on “Always” it literally is always on, even with pausesUpdatesAutomatically.
The phone is resting on my desk the entire time…
I looked at Apple’s documentation:
https://developer.apple.com/documentation/corelocation/cllocationmanager/1620553-pauseslocationupdatesautomatical
After a pause occurs, it is your responsibility to restart location services again when you determine that they are needed. Core Location calls the locationManagerDidPauseLocationUpdates(_:)
method of your location manager’s delegate to let you know that a pause has occurred. In that method, you might configure a local notification whose trigger is of type UNLocationNotificationTrigger
and is set to notify when the user exits the current region. The message for the local notification should prompt the user to launch your app again so that it can resume updates.
Through Expo, can the pausing actually happen? What settings can I put to actually get the background location updates to pause? If it does get paused, does Expo handle starting it up again?
Has Expo ever actually tested the pausesUpdatesAutomatically functionality on iOS?
cc @charliecruzan @ide