简体   繁体   中英

Mobile Web application running when screen is off?

I'm considering building a mobile Web application, using Jquery Mobile that will be used to track truck delivery.

I want to be able to periodically send gps coordinates back to the server? Can this be done if the screen is off?

If not can some alternate approaches be suggested..

If you are good in javascript and html you can go for phonegap. this framework will work like a native application and running from webview like browser. Since phonegap is a cross platform framework you can make your app compatible to many devices like windows phone, Apple, Android. To know more about phonegap or cordova click here

And yes phonegap does many function or features that can customize your application in many way. for example "WAKE LOCK" which keeps your application awake till you force close it.

or if you are using browser you can not run your code for long since browser is a big application android or your mobile system will close it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM