0 | I have an ionic app in which the app behaves in the following way when it is in the foreground. A service in the app checks geolocation every x seconds using navigator.geolocation and based on the coordinates it calls another service to do some http calls. Now these things obviously don't work when the app is in the background, but it is very crucial that my app is able to do these detections and make these calls (Which includes changing some variables in the service.js) I have the following code in my app.js so far.
If this works I should be able to wrap the piece in a function, and setInterval, so the location gets checked every x seconds. Can anyone suggest how I can make this work on the background. It works fine when I do this on the foreground. |
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
---
You received this message because you are subscribed to the Google Groups "phonegap" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phonegap+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.