简体   繁体   English

知道用户何时从我的应用程序“读取”推送通知吗?

[英]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.

相关问题 将通知推送到我的应用而非用户 - Push Notification to my app not the user 如何在我的应用未运行时处理推送通知 - how can I handle push notification when my app is not running 即使应用程序在后台运行且未打开,WhatsApp如何知道用户是否获得了推送通知? - How does WhatsApp know if the user gets the push notification even if the app is runnng in the background and is not open? 如何从我的iOS应用中删除推送通知? - How to Remove Push Notification from my iOS App? 当应用程序在后台时推送通知 - Push notification when app in background 从 App Store 下载时,推送通知停止工作 - Push notification stopped working when downloaded from App Store 用户在后台收到推送后手动打开应用程序时获取推送通知有效负载 - Getting push notification payload when user opens app manually after push has been received in the background 如果我从App Store删除应用程序,可以向我的应用程序发送推送通知 - Can I send Push Notification to my app if I delete my app from App Store 如何通过远程推送通知在我的应用程序中获取notification.alertBody? - How to get notification.alertBody in my app from a remote push notification? 推送通知停止在我的实时应用上运行 - Push notification stop working on my live app
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM