问题
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