在iOS4的PhoneGap的后台服务? [英] Phonegap background service on iOS4?

查看:151
本文介绍了在iOS4的PhoneGap的后台服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以得到的iOS 4运行的应用程序的PhoneGap有一个后台服务时,它不是有效的应用程序(例如检查网址每隔一小时,并提醒用户是否有过任何改变)?

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 been any changes)?

如果是这样,怎么样?

推荐答案

是的,你可以做到这一点,但苹果可能会禁止它。后台运行势必非常具体的规则。对于这种东西,苹果发明推送通知(从服务器)。

Yes, you can do that, but Apple will probably disallow it. Background running is bound to VERY specific rules. For this kind of stuff Apple invented Push Notifications (from server).

您可以阅读有关的开发者文档。

You can read the developer documentation about that.

这篇关于在iOS4的PhoneGap的后台服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆