iOS 静默推送通知失败并显示消息

iOS Silent Push notifications are failing with message

我正在尝试让静默推送通知在我的应用程序中工作,当应用程序在后台时我没有看到收到通知,但当应用程序在前台时,通知方法被调用。

当我检查控制台日志时,我可以看到 phone 确实收到了我的通知,但 iOS 没有显示它们。这是我没有收到通知时得到的日志,

com.apple.pushLaunch.<bundle id>:439286:[
    {name: NetworkQualityPolicy, policyWeight: 11.400, response: {Decision: Absolutely Must Not Proceed, Score: 0.00, Rationale: [{[unconstrainedNetworkAvailable]: Required:1.00, Observed:0.00},{requestsLaunch == 1}]}}
 ], FinalDecision: Absolutely Must Not Proceed}

这里有人知道不允许显示我的通知的“NetworkQualityPolicy”吗?

它现在可以工作了,我使用的是 api.sandbox.push.apple.com:443,它在 https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns/

中提到

当我切换到 api.development.push.apple.com:443 时,它工作正常