iPhone 应用程序如何在待机状态下生成通知?
我有点困惑。
它在很多地方都说,在 IOS 上,如果手机进入待机模式,除非您使用推送通知,否则您将无法使您的应用程序运行。
我确实遇到过一些在 iPhone 4 中成功实现此目的的应用程序 (如ihandy闹钟http://www.ihandysoft.com/alarm_clock.html
)当我处于飞行模式时,甚至在待机时发出嘟嘟声!
有人可以纠正我对这个问题的想法吗?
I'm a bit confused.
It says on many places, that on IOS you can't make your app work if the phone enters standby mode unless you use push notifications.
I did encounter some apps that do succeed this in IPhone 4
(such as ihandy alarm clock http://www.ihandysoft.com/alarm_clock.html)
It even beeped on standby when I was in airplane mode!
Can someone straighten my thought regarding this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
iOS 中有两种通知:推送通知和本地通知。
在您的情况下,应用程序在飞行模式打开时发出蜂鸣声,它可能使用本地通知而不是推送通知。
There are two kinds of notification in iOS: push notification and local notification.
In your case, the app beeps while airplane mode is on, it might use local notification rather than push notification.
根据 http://developer.apple。 com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html,“定期接收来自外部配件的更新”可以继续在后台运行。
According to http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html, “Apps that receive regular updates from external accessories” can continue to run in the background.