Hi, I am using native script push-plugin to implement push notification in my app. In order to make it work, I have followed all the instruction from the plugin documentation Push Plugin.
I have also added fcm SDK in my project by following the official documentation from here Firebase Cloud Messagning.
I have added this service to App-Resources/Android/Android-manifest.xml
<service android:name=".MyFirebaseMessagingService"> <intent-filter> <action android:name="com.google.firebase.MESSAGING_EVENT"/> </intent-filter> </service>
Now the project is building successfully. The device is getting registered successfully and generating token. When I am trying to send notification message from firebase console the message is sent successfully.
But No notification get received by the device. notificationCallbackAndroid doesn’t trigger and nothing happens whether the app is in foreground or background.
It would be great if someone helps me on this.