I'm currently working on a location based Cordova + Meteor (iOS) mobile-app, where I need to keep an eye on the user's location, even when the app is terminated.
For this I have tried to implement the cordova-background-geolocation-lt plugin, but I'm having issues: https://github.com/transistorsoft/cordova-background-geolocation-lt/issues/221
Because of this I am thinking of writing my own native (obj-c/swift) plugin (partly using code from this answer) that will get user's location and send it to the server.
My question is:
From this answer:
When iOS wants to return the location update to the app, it will help you to relaunch the app and return a key UIApplicationLaunchOptionsLocationKey to the app delegate method didFinishLaunchingWithOptions.
When app is killed/terminated/suspended - Is it possible to relaunch only part of the Cordova app - only native code that is responsible for background geolocation tracking and posting it to the server without fully relaunch the whole app - JS part & Meteor part?