I am totally new to push notification in Ionic App. Now i am able to receive notification when someone send notification. I want able to push notification when user conduct some action. Is there any way to send notification from TypeScript using Cordova FCM?
FCM listener
constructor(private fcm: FCM){
fcm.subscribeToTopic('all');
fcm.onNotification().subscribe(data=>{
if(data.wasTapped){
console.log("Received in background");
} else {
console.log("Received in foreground");
};
})
}
Hi create Firebase account,
Get Sender ID
https://ionicframework.com/docs/native/push/ [install plugin from here]
Best tutorial to implement push for ionic2
https://medium.com/@ankushaggarwal/push-notifications-in-ionic-2-658461108c59