是否可以在后台模式下接收推送通知

发布于 2024-12-14 00:40:08 字数 151 浏览 1 评论 0原文

是否可以接收应用程序在后台模式下收到的所有推送通知。 我的意思是,当应用程序运行然后应用程序进入后台模式,然后应用程序接收推送通知(在后台模式)并且用户没有按警报消息上的查看按钮(此按钮运行应用程序)并且几分钟后用户启动应用程序时,在此我想获取我的应用程序在后台模式下收到的所有推送通知。

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

白云悠悠 2024-12-21 00:40:08

是的,应用程序可以并且确实接收推送通知,无论它们是在后台还是不活动。在您的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文