Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71016

Read push notification message content

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 71016

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>