-
-
Notifications
You must be signed in to change notification settings - Fork 76
Subscribing for location changes while app is suspended in background. #44
Comments
For anyone looking at this issue, I incorporated the following into my nativescript-geolocation (which seems to work for the significant location api). It's pretty much a modified copy of watchLocation (It's rough and hasn't been thoroughly tested so use with care):
|
We should add:
https://developer.apple.com/reference/corelocation/cllocationmanager/1620568-allowsbackgroundlocationupdates |
Is it possible for a Nativescript app to use geolocation while an app is in the background or suspended. For example, Apple provide a Significant-Change Location Service that from my understanding "wakes" the app up for an event?
https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/LocationAwarenessPG/CoreLocation/CoreLocation.html
Any examples or guidance out there? I've had trouble finding any :)
Basically, I'm trying to make an app that will prompt the user when they encounter a specific location (even if the app isn't currently open).
The text was updated successfully, but these errors were encountered: