简体   繁体   English

如何在正在运行的ios应用中推迟处理推送通知?

[英]How can I defer handling a push notification in a running ios app?

如果在我正在运行的应用程序中触发了application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo ,但我现在不想处理它,是否可以将其发布在通知中心中,以便用户可以滑动下来然后单击?

No, active apps get the push notification directly and the notification will not be added to the notification center. 不,活动的应用程序会直接获得推送通知,并且通知不会添加到通知中心。

You will have to handle it directly or store it your self for later use. 您将必须直接处理它或将其存储为以后使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM