是否可以在后台模式下接收推送通知
是否可以接收应用程序在后台模式下收到的所有推送通知。 我的意思是,当应用程序运行然后应用程序进入后台模式,然后应用程序接收推送通知(在后台模式)并且用户没有按警报消息上的查看按钮(此按钮运行应用程序)并且几分钟后用户启动应用程序时,在此我想获取我的应用程序在后台模式下收到的所有推送通知。
Is it possible to receive all push notifications that app recieved in background mode.
I mean that when app runned and then app went to background mode and then app recieve push notifications(in background mode) and user does not press view button on alert message (this button run app) and after some minutes user launch app, in this point I want get all push notifications that my app recieve in background mode.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,应用程序可以并且确实接收推送通知,无论它们是在后台还是不活动。在您的
applicationDidEnterBackground:
方法中,您可以检查您的应用是否收到了通知,然后从那里处理它。Yes, applications can and do receive Push Notifications whether they are backgrounded or not even active. In your
applicationDidEnterBackground:
method you can check to see if your app has received a notification, then handle it from there.