ios - 收到推送通知时捕获

标签 ios swift parse-platform push-notification

我使用 Parse 向用户发送 PushNotifications。我可以捕捉到很多 Action ,例如。应用程序是否打开,应用程序关闭前,应用程序关闭后。 但是 当设备被锁定或应用程序未运行并且收到PushNotification 时我无法注册。在这种情况下我怎么能

println("something")?

再次:PushNotification 已收到,但我的应用目前未运行。

My question is in Swift, not in ObjectiveC as in those question

最佳答案

查看 Apple 文档。特别是本文档中的“响应通知和事件”。

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/

关于ios - 收到推送通知时捕获,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29797907/

相关文章:

ios - 在 iOS 中使用带有标签的 View

python - iOS+GoogleChrome 上的“内容处置”[Google App Engine 上的 Flask]

ios - 如何在swift中禁用导航 Controller 向右滑动

javascript - 使用 javascript 显示来自 parse.com 数据库的图像的简单方法

ios - Facebook Graph Api v2.0 me/photos 对除创建该应用程序的我以外的所有用户返回空

ios - Objective-C:实时位置更新

ios - 位置管理器 : sometimes startUpdatingLocation don't start

ios - 安装BTNavigationDropdownMenu后,无法导入

swift - 将两个 [String : Int] dictionaries in Swift

swift - 我的 http 请求不起作用