Getting date and time when notification arrived in (Firebase and IONIC)


#1

Hello all:

I am using IONIC and Firebase FCM plugin for get notifications and works perfect but i haven’t found the way of get the date and time when the notification arrived to my smartphone. I have searched in google, stackoverflow, etc and i haven’t found the solution. I need do this in background for save the datetime to mysql database. This work good in foreground.


#2

Could you send the timestamp as one of the properties in the push notification value and extract it from there?


#3

That would be badly done as it would not be the actual arrival time…