I am using cordova-plugin-fcm in an ionic project to use Firebase push notification. The Notification is working fine for android platform, but when I added iOS platform I couldn't get any notification on my device.
Here are the things I've done: 1- I added GoogleService-Info.plist to my project and inside platforms in ios folder. 2- Enabled notification from xCode 3- I also tried to send test notification from Firebase console and it worked. 4- The back-end team fired the function that sends notification and I could received the notification on my device.
But when I test the app and try the case where notification should be received, I never get it.
I don't even know how to debug this issues. Any ideas?
it turned out to be a back-end issue not an issue in the plugin itself. The issue in the back-end was a wrong if condition.