在过去的几天里,由于我们的推送通知功能不再工作,我们收到了一些错误报告。
我们使用带有 react-native-notifications 的 React Native(最新版本)。我们在应用商店中的构建是从 10 月初开始的,并且运行良好。
现在,当我按下链接到请求 PushToken 的按钮时,什么都没有发生——甚至没有触发失败回调。
当我打开设备控制台时,单击按钮时会出现以下两个错误:
error 14:11:19.891971+0100 SpringBoard Entitlment 'com.apple.private.usernotifications.bundle-identifiers' for online.*.* required to request user notifications
error 14:11:19.892050+0100 SpringBoard [online.*.*] Requesting authorization failed because of missing entitlement
但显然,推送通知的权利已设置(并且一直如此)。
你们有任何想法要检查什么吗?我现在有点不知所措。
最好的!