是否可以在后台模式下接收推送通知(Is it possible to receive push notifications in background mode)

编程入门 行业动态 更新时间:2024-10-27 06:21:44
是否可以在后台模式下接收推送通知(Is it possible to receive push notifications in background mode)

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

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.

最满意答案

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

更多推荐

本文发布于:2023-07-16 12:33:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1128524.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:后台   通知   模式下   receive   mode

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!