Is possible to make an event when clicked on local notification while app closed?


#1

As a title

I searched a lot for something that allows me to make an event when I clicked on local notification icon while the application closed.

I mean as usual, after click on notification icon then the app opened… so I want to make an event after open the app

Is that possible in ionic ? If possible please help me


#2

Yes it is,

you can use FCM plugin, and read the documentation on FCM.

have fun exploring.

:smiley:


#3

But as I know FCM can be used with firebase notification

Or its can be used with local notification !


#4

you are refering to local notification or fcm notification?


#5

As I wrote “local” and as I think there is no way to do that :frowning:


#6

have you try this?


#7

Actually “yes”

I checked on click event but as I guess it doesn’t work if the application was closed


#8

How about https://github.com/katzer/cordova-plugin-local-notifications#launch-details?


#9

finally!

Thank u so much


#10

Can you share how you implemented that in your app, possibly via Ionic Native? There don’t seem to be many examples of that online.