[英]Firebase Cloud Messaging with Apple push notifications stopped working when I changed my app Bundle ID
I have an App that I had to change the Bundle-ID for.我有一个必须更改 Bundle-ID 的应用程序。 Once I did this Push Notifications stopped working.一旦我这样做,推送通知就会停止工作。 I replaced the app on Firebase with one with the new Bundle-ID and re-downloaded the GoogleService-info.plist.我用新的 Bundle-ID 替换了 Firebase 上的应用程序,并重新下载了 GoogleService-info.plist。 I have also created a new APNs authentication key and re-uploaded it.我还创建了一个新的 APNs 身份验证密钥并重新上传了它。 I have also added all the necessary code as specified on the Firebase documentation (and I have a similar app with the same code that works).我还添加了 Firebase 文档中指定的所有必要代码(并且我有一个类似的应用程序,其代码可以正常工作)。
However, when I run the app on my phone it does not receive any push notifications.但是,当我在手机上运行该应用程序时,它没有收到任何推送通知。 I have tested it by creating a test notification on my firebase console and sending the notification both to the device FCM token and a topic the device is subscribed to, with no success.我通过在我的 firebase 控制台上创建测试通知并将通知发送到设备 FCM 令牌和设备订阅的主题来测试它,但没有成功。
I am relatively new this so let me know if there's any other information needed.我对此比较陌生,所以如果需要任何其他信息,请告诉我。
I found a problem in last version and switched to firebase_messaging: 11.2.8 and Its working我在上一个版本中发现了一个问题并切换到 firebase_messaging: 11.2.8 and Its working
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.