[英]Know when user “reads” a push notification from my app?
当用户从我的应用中读取或“看到”了推送通知时,是否可以获取回调或其他通知?
You get a callback only if the user taps on the notification to open the app. 仅当用户点击通知以打开应用程序时,您才会获得回调。 In that case either
didReceiveRemoteNotification
(if app was active or in the background) or application:didFinishLaunchingWithOptions
(if app wasn't running) is called. 在这种情况下,将
didReceiveRemoteNotification
(如果应用程序处于活动状态或在后台)或application:didFinishLaunchingWithOptions
(如果应用程序未运行)。 In both of them you can access the dictionary containing the push notification data, and callback your server if you wish. 在这两个目录中,您都可以访问包含推送通知数据的字典,并根据需要回调服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.