Why is FCM Push Messages on iOS only working in production or via TestFlight?

余生长醉 提交于 2021-02-11 17:37:36

问题


I'm trying to get push notifications working on FCM. I'm using the new authentication key way with the .p8 file.

Everything is working when I use TestFlight to get the app on my iPhone. But when I use Xcode during development, I receive the message in foreground mode. But it's not shown in the system tray when the app is closed / in background mode.

Is it even possible to receive notifications when the app is installed via xcode directly on the phone? Since notifications are also not working in the simulator anymore? Or is something wrong with the certificates? Since TestFlight is "production" mode?

Just some background facts: I'm using Ionic 4 and FirebaseX Plugin.

来源:https://stackoverflow.com/questions/62212548/why-is-fcm-push-messages-on-ios-only-working-in-production-or-via-testflight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!