breautek commented on issue #165:
URL: 
https://github.com/apache/cordova-plugin-geolocation/issues/165#issuecomment-819633704


   > 2019 request and still this isn't available? Wow... well I'm sure going to 
abandon using this one.
   > Just to confirm, this plugin will not retrieve geolocation if you're 
running your app in background mode.
   
   To be clear, background processing is very limited on hybrid apps as the 
webview JS engine will be completely paused on iOS, and could be completely 
paused on some Android devices while the application is in the background.
   
   This means at most, we may be able to collect GPS events that occurred in 
the background, but can only be passed to your application once the application 
is brought back into the foreground. Obviously in most cases, you'd want to be 
able to react to background location events immediately to produce a 
notification to the user, or to do something with it so receiving a stream of 
location events that has happened sometime in the past isn't exactly ideal.
   
   Depending on the use case / requirements, the only workaround is to build a 
cordova plugin that contains your application business logic that responds to 
background location events.
   
   With that being said, there are [existing third-party 
plugins](https://www.npmjs.com/search?q=cordova%20plugin%20background%20location)
 that do implement background location. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to