0
I’m creating an app with Phonegap and using cordova-plugin-firebase
to send notifications to Android, I’m able to send the notification, but when I "open" the notification I can’t show its content (title and message)
window.FirebasePlugin.onNotificationOpen(function(notification) {
alert(JSON.stringify(notification));
}, function(error) {
console.error(error);
});
All that appears on Alert are:
google.sent_time
google.ttl
tap
from
google.message_id
google.priority
collapse_key
according to the image. Does anyone know how I can take the information and display it to the user?
You will probably use collapse_key or google.message_id to fetch the desired message.
– Guilherme Nascimento
But as I search, what I’m not finding, I saw in some videos that it comes together in the notification, but print in Alert and does not appear
– Michel Lovatto