I am currently developing a web app application for iphone

The main fonctionnality of this app is to collect GPS data in a regular way ( every 10 sec ) in order to be sent via AJAX to a WebService and saved...

the problem is that after a few moments , the iphone goes in sleep mode ( screen switch off ) and then the process is no longer active

is there a way to keep the application constantly awake like some traditional applications such as GPS applications ?

有帮助吗?

解决方案

You can not keep a device awake with a non-native app. See the docs.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top