gpt4 book ai didi

ios - 为什么我的 iPhone 应用程序在终止后没有收到后台提取事件?

转载 作者:行者123 更新时间:2023-11-29 12:49:16 25 4
gpt4 key购买 nike

我构建了一个执行定期更新的小型 ios 应用程序。我正在使用回调处理程序为后台提取 注册我的应用程序。当应用程序进入后台时,我将继续收到回调(每 20-30 分钟一次,事件日后)。

一旦我的应用终止 - 回调处理程序将不再执行。

这是异常(exception)行为吗?我没有在 Apple 文档中找到有关从终止状态激活的任何提及。

ps:从终止 状态激活对我的应用至关重要。激活的方式可以是任何方式,用户交互除外。

最佳答案

似乎如果一个应用程序被终止,它既不会被后台获取也不会被推送通知唤醒。虽然没有关于此的官方文档。

Also keep in mind that if you kill your app from the app switcher (i.e. swiping up to kill the app) then the OS will never relaunch the app regardless of push notification or background fetch. In this case the user has to manually relaunch the app once and then from that point forward the background activities will be invoked.

来源here

关于ios - 为什么我的 iPhone 应用程序在终止后没有收到后台提取事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22823788/

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