Running process in background


#1

Hi there,

I am building an app that needs to send the position of the telephone each 20 seconds. I do that with a timer. The problem is that when I lost focus of my app (because I switch to another app), it seems that the timer is stopped since it does not register anything in my server until I get the focus again on my app.

Is there is anyway that my app can continue working of the back even though I dont have the focus on it?

Best Regards,
Adrian.


#2

https://www.npmjs.com/package/cordova-plugin-background-service


#3

Thanks I will give it a try.

Best Regards,
Adrian


#4

I have a project that uses this feature …
I’ll go find it and share it …


#5

Hi Ricardo.

I would really appreciate it.

Best regards,
Adrián