gpt4 book ai didi

swift - 当应用程序处于未运行状态时推送通知委托(delegate)触发的解决方案是什么?

转载 作者:搜寻专家 更新时间:2023-11-01 07:27:08 27 4
gpt4 key购买 nike

如果应用程序未处于运行状态,我们如何在不点击收到的通知的情况下触发推送通知委托(delegate)。1.收到通知2.不点击通知3.点击应用图标启动应用

在这种状态下,我如何检查是否收到推送通知?

最佳答案

在这里查看评论:

UIApplicationLaunchOptionsRemoteNotificationKey not getting userinfo

基本上设置 "content-available": 1 在 payload 和 application:didReceiveRemoteNotification:fetchCompletionHandler 将被调用。

关于swift - 当应用程序处于未运行状态时推送通知委托(delegate)触发的解决方案是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35265144/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com