I am using cordova-plugin-fcm-with-dependecy-updated this plugin for push notification. Notification receiving on top of the notification bar but when I click on it it will redirect to respected app but if (data.wasTapped) this is not firing what to do now ?
My Payload is
{
"token": "[FCM token]",
"notification":{
"title":"Post created successfully",
"body":"",
"sound":"default",
},
"data":{"redirect":"BlogDetails","blogID":2609}
,
"android": {
"notification": {
"icon":"fcm_push_icon",
"click_action": "FCM_PLUGIN_ACTIVITY"
}
}
}
Ionic Info
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.5
@ionic/app-scripts : 3.2.2
Cordova:
cordova (Cordova CLI) : 10.0.0
Cordova Platforms : android 8.1.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 19 other plugins)
System:
Android SDK Tools : 26.1.1 (/Users/dipak/Library/Android/sdk)
ios-deploy : 1.11.2
NodeJS : v12.18.4 (/usr/local/bin/node)
npm : 7.5.3
OS : macOS Mojave
Xcode : Xcode 11.3.1 Build version 11C504
Any suggestion what I am doing wrong ?