2012-08-31 135 views
2

我开发了使用苹果推送通知的iPad应用程序。推送通知传递在所有情况下均可正常工作,除非iPad设备被锁定并发送通知。在这种情况下,它表现得很奇怪,并且当您滑动以解锁设备而不触摸警告/横幅时打开应用程序。它在IOS版本4.3,5.1和也在6.0解锁iPad时,推送通知提醒打开应用程序

发生在苹果的文件,他们都提到如下:

http://developer.apple.com/library/ios/#DOCUMENTATION/NetworkingInternet/Conceptual/RemoteNotificationsPG/IPhoneOSClientImp/IPhoneOSClientImp.html

 
iOS Note: If the user unlocks the device shortly after a remote-notification alert is displayed, the operating system automatically triggers the action associated with the alert. (This behavior is consistent with SMS and calendar alerts.) This makes it even more important that actions related to remote notifications do not have destructive consequences. A user should always make decisions that result in the destruction of data in the context of the application that stores the data. 

什么行动警报关联?
操作系统会自动触发与警报

相关的行动,还我想了解什么是在这种情况下默认行为?

任何帮助表示感谢,并提前感谢。

回答

2

它行为不古怪,因为这是默认行为。当通知点亮屏幕时,“幻灯片解锁”变为“幻灯片查看”,这会打开您的应用并执行与通知相关的操作。

默认的操作是没有任何反应,如果你没有指定任何事情发生。

有关处理通知(与警报相关的操作),请参阅文档:Link,处理本地和远程通知

相关问题