推送通知后打开应用程序时执行操作吗?
我正在尝试弄清楚推送通知。我有“应用程序确实收到远程通知”的方法,但这仅在通过选择推送通知打开应用程序时有效。我想知道是否有一种方法可以在应用程序打开后通过触摸应用程序图标而不是通知来执行操作。这有道理吗?
我在想“如果徽章编号是 1,那么就做点什么”,但我 不知道如何实现这一点。
I'm trying to figure out push notifications. I have the method "application did receive remote notification", but this only works when the app is opened by selecting the push notification. What I am wondering if there is a way to perform an action after the app is opened by touching the app icon, not the notification. Does this make sense?
I was thinking something like 'if badge number is 1 then do something', but I
not sure how to implement this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以拨打以下电话获取徽章号码:
You can get the badge number by calling: