ionic1 fcm push notification custom click

2019-08-01 00:18发布

问题:

hi all i am using ionic1 push notification functionality with help of firebase here i mentioned used plugins

1.ionic plugin add cordova-plugin-inappbrowser

2.ionic plugin add cordova-plugin-fcm

3.ionic plugin add cordova-plugin-velda-devicefeedback

Once app open and in foreground then notify worked maybe i closed app and send notify it's not working help

Notification working fine i need when user click notify i am show alert box in my app and show the notify message in alert help

回答1:

When the application is in the background in order to get the click event you need to modify the data sending to the firebase api. Check this link https://stackoverflow.com/a/45325585/7140972 for the detailed answer.