@paranoid wrote:
Hi,
I would like to save the received push notifications temporarily, on my local storage.
For receiving push notifications I’m using the ionic native firebase plugin. When the notification arrives I’m listening the onNotificationOpen() function, which returns an observable.this.firebase.onNotificationOpen().subscribe((data) => { console.log(data); })
As response of the observable I expect the notification message wrapped into an object, but instead I just get an google.message_id.
{ collapse_key:"com.myapp" from:"511214205175" google.message_id:"0:472894798235987239874284832742894" google.sent_time:1505893548310 my_key:"my_value" tap:true }
Is there any workflow to read the actual message using the message_id?
Posts: 1
Participants: 1