Client side Timers Running in mobile backgroud

Client side Timers Running in mobile backgroud

  

Hi, 

Is there any way to create timers on the mobile running on the client side ?

I need create a timer to register GPS coordinates every 1 minute into client database without internet connections.

Thank you !

Hi, i create a component called  Accelerometer in the forge using Cordova API. There is an API navigator.accelerometer.watchAcceleration that run callback function for every time interval you define. May be you can use that technique in your use case. 

I use that component to measure the device orientation and then insert the results to local storage. As it reads the local acceleration chip so there is no need for Internet connection.

Regards

Bb