我使用 Parse 向用户发送 PushNotifications
。我可以捕捉到很多 Action ,例如。应用程序是否打开,应用程序关闭前,应用程序关闭后。 但是 当设备被锁定或应用程序未运行并且收到PushNotification
时我无法注册。在这种情况下我怎么能
println("something")?
再次:PushNotification
已收到,但我的应用目前未运行。
My question is in Swift, not in ObjectiveC as in those question
最佳答案
查看 Apple 文档。特别是本文档中的“响应通知和事件”。
关于ios - 收到推送通知时捕获,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29797907/