android - cordova background geolocation support without app getting terminated after a while -
i'm searching way implement background geolocation support on ios without app getting terminated os , stopping tracking of device. in application i'm using these 2 plugins geolocation support in background:
https://github.com/katzer/cordova-plugin-background-mode
and https://github.com/apache/cordova-plugin-geolocation
but after app while in background app gets terminated ios , isn't sending tracking points.
i found plugin our purpose:
https://github.com/transistorsoft/cordova-background-geolocation-lt
but plugin tracks geolocation if app gets terminated user manually, think there might hack or wouldn't pass ios testing phase.
so how achieve without hacks?
i'm creator of cordova-background-geolocation
there's no hack involved here , plugin 100% compatible apple guidelines. plugin's ability keep tracking on app terminate / device reboot granted because ios itself persists listeners on geofences. plugin subscribes geofence around last known position while in stationary mode. when app terminated, plugin, in last dying breath, ensured geofence exists around last known position.
in addition, plugin subscribes ios background fetch api, api ios persists in spite of app terminate / device reboot.
no magic here.
Comments
Post a Comment