![](/img/trans.png)
[英]application:didReceiveLocalNotification: not called when app in background
[英]didReceiveLocalNotification method not called in app delegate when app is in background [iOS6]
我添加了一个本地通知,它也会通过在iOS6上显示横幅并在iOS5中显示警报来触发。
但是在iOS6中,app delegate中的“ didReceiveLocalNotification ”方法没有被调用。
当应用程序在后台时,我怎么知道发生了通知?
谢谢。
永远不会在后台调用它。 当您的应用处于前台时,它将被调用。
有关详细信息,请查看UIApplicationDelegate协议参考链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.