Could you potentially use mozAlarms to wake your app up in case it gets closed? This is what we do for calendar to synchronize events with the server.
https://developer.mozilla.org/en/docs/WebAPI/Alarm Best, Kevin ----- Original Message ----- From: [email protected] To: [email protected] Sent: Thursday, May 22, 2014 2:24:48 PM Subject: [b2g] Prevent app from being killed Hi there, I'm quite new to Firefox OS. At the moment I'm struggling with implementing some kind of a "service" that listens for geolocation updates in the background. If there are lots of other apps running at the same time mine seems to be killed by the system. When I debug with App Manager it just disconnects from the app silently. I tried requestWakeLock('cpu') and the use of a Worker but without success. I know that there are non certified apps like ConnectA2 that stay alive all the time so there have to be a way. Could someone give me a hint? _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g _______________________________________________ dev-b2g mailing list [email protected] https://lists.mozilla.org/listinfo/dev-b2g
