是否可以接收应用程序在后台模式中收到的所有推送通知。 我的意思是,当应用程序运行然后应用程序进入后台模式,然后应用程序接收推送通知(在后台模式),用户不按警报消息上的查看按钮(此按钮运行应用程序),并在几分钟后用户启动应用程序,在此我希望获得我的应用程序在后台模式下收到的所有推送通知。
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.
更多推荐
发布评论