gpt4 book ai didi

ios - 检测是否在应用程序未启动且用户未通过它们打开应用程序时收到推送通知

转载 作者:搜寻专家 更新时间:2023-10-31 08:04:34 25 4
gpt4 key购买 nike

是否可以检测在应用程序离线时是否收到推送通知(不在后台或前台?考虑到用户直接从跳板而不是推送通知警报打开应用程序的情况。

最佳答案

来自 的文档
- 应用程序:didReceiveRemoteNotification:fetchCompletionHandler:

the system calls this method when your app is running in the foreground or background.

但是,正如您可能已经从您的问题中发现的那样

However, the system does not automatically launch your app if the user has force-quit it. In that situation, the user must relaunch your app or restart the device before the system attempts to launch your app automatically again.

关于ios - 检测是否在应用程序未启动且用户未通过它们打开应用程序时收到推送通知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39619082/

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