FCM "fcm.onNotification().subscribe(data=>{" not working

I am using FCM plugin its working fine all exist functionality in iOS and android but when I used one more plugin “Local Notifications” so FCM plugin “fcm.onNotification().subscribe(data=>{” not working in iOS but in android working fine.
Can you help me understand, What problem is there.


1 Like

I think these two can’t be working together. Here I’ve to thank you for this post. I was having problem that onNotification() was not triggered in iOS (Android was ok). When I saw your post, I came to realize to remove Local Notification plugin and, now it works for both iOS and Android. And pls share with us if you already found out any solution for using both plugin. That would be useful with some particular use cases in the future. Thank you.

El problema es que los plugins causan un conflicto solo necesita instalar versiones mas antiguas.

cordova plugin add de.appplant.cordova.plugin.local-notification@0.8.5
npm install --save @ionic-native/local-notifications@4.20.0

[npm install --save @ionic-native/local-notifications]
(http://npm install --save @ionic-native/local-notifications)

1 Like

hi i’m using:
cordova-plugin-fcm-with-dependecy-updated ^2.4.0
@ionic-native/fcm": "^4.18.0

i was using local-notification too, but i removed it (uninstall it) , and i have in my backend code


but still till now iphone when receive notification and tap to it doesn’t redirect me to the specific page and ```

didn't called.
do you know any informations?