When my application run on background or foreground , if i click the notification , I can take to notification datas. But, If I click the notification When application doesn't run , I can take notifacation datas. How can i take datas when my application doesn't run.
This function works when notification is received while the application is running , but if application is not running , this function not running
FCM.on(FCMEvent.Notification, notif => {
console.log("Notification is received", notif);
});
When my application run on background or foreground , if i click the notification , I can take to notification datas. But, If I click the notification When application doesn't run , I can take notifacation datas. How can i take datas when my application doesn't run.
This function works when notification is received while the application is running , but if application is not running , this function not running