gpt4 book ai didi

iOS13不支持后台更新通知吗?

转载 作者:行者123 更新时间:2023-12-04 16:03:37 25 4
gpt4 key购买 nike

iOS13不支持后台更新通知。这是操作系统级别的错误吗?
当应用进入后台时,Xcode警告显示:

Can't end BackgroundTask: no background task exists with identifier 1 (0x1), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug.

最佳答案

我从开发人员文档中得到了答案:
https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns

apns-push-type

(Required when delivering notifications to devices running iOS 13 and later, or watchOS 6 and later. Ignored on earlier system versions.) The type of the notification. The value of this header is alert or background. Specify alert when the delivery of your notification displays an alert, plays a sound, or badges your app's icon. Specify background for silent notifications that do not interact with the user.

关于iOS13不支持后台更新通知吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58081384/

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