Closed iampapaisarkar closed 1 week ago
Launch your app in the iOS Simulator. Simulate location with Freeway Drive. Terminate app. Wait about 10s.
I think it's working fine when the app is terminated only on simulator I just test it on my real device, it is not working on app terminate please see both video below.
But I have other questions:
If I set my server URL to get all current locations, will it always send?
Yes.
If I turn off mobile internet, what happens then?
The plugin was originally designed for offline operation, tracking emergency-workers in disaster zones where the cellular network is assumed to be destroyed. That's why the plugin first inserts each recorded location into its own SQLite database. When a network connection is restored, the plugin will automatically POST each record found in its database.
Is there a way to set up a region using a radius so that if a user enters or exits that area
This is called "Geofencing". Yes, the plugin implements the native Geofencing API for both iOS and Android. See API docs "Geofencing Guide"
Your Environment
npx cap doctor
)#ready
: