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

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

问题描述

我能否让在 iOS 4 上运行的 phonegap 应用程序在它不是活动应用程序时提供后台服务(例如,每小时检查一个 url 并在有任何更改时提醒用户)?

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)?

如果是,怎么办?

推荐答案

是的,您可以这样做,但 Apple 可能会禁止这样做.后台运行绑定到非常具体的规则.对于这种东西,Apple 发明了推送通知(来自服务器).

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天全站免登陆