I've searched hours to find a solution for my problem. I added the Firebase Cloud Messaging to my app like in this tutorial:
https://firebase.google.com/docs/cloud-messaging/ios/client?authuser=0
- I've created an profile for the app inside the apple developer console
- created an APN Key inside the apple developer console (Key is valid for all team apps)
- created an new ios app entry inside the firebase console to the existing android app
- Added in the firebase console under project settings -> Cloud Messaging the APNs-Authenticationkey
- Installed all necessary pods via cocoapods
- Added the GoogleService-Info.plist to my project
- enabled the push notification in xcode/capabilities
Now in the Field:
I receive the messages when I sending from within the Firebase Console Website. On this way, there is no problem. The message arrive inside the iOS app function "didReceiveRemoteNotification".
But when I sending data from my remote server, the messages doesnt arrive inside my iOS app. Inside my Android-App all works perfectly with the remote server. iOS and Android app are using the same FCM Server Key, so normally it have to work.
I dont know how to solve this problem, have anybody an idea ?