Phonegap background service on iOS4?

后端 未结 3 2038
萌比男神i
萌比男神i 2020-12-10 21:29

Can I get a phonegap application running on iOS 4 to have a background service when it\'s not the active app (e.g. check a url every hour and alert the user if there have be

3条回答
  •  旧时难觅i
    2020-12-10 21:59

    The best way to achieve this would be to create a plugin for PhoneGap, which runs natively on the phone. PhoneGap recommends that any heavy lifting be done by native code.

    Check out the IOS documentation for background tasks, it should tell you what is allowed, and what is not.

    http://developer.apple.com/library/ios/#DOCUMENTATION/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html

提交回复
热议问题