Closed natanraj closed 6 years ago
In your example you are creating a notification message. Please create a data message as outlined here: https://github.com/eclipsesource/tabris-plugin-firebase/blob/master/doc/cloud-messaging.md#send-message-with-notification-from-server
I followed this. But i need a notification as well, when the app is on the background (like it appears on system tray) so that the user clicks on the app to launch. It all seems so simple, may be i am missing something.
Please make sure to only include the data
field. In it you can have the title
and body
fields. See the docs for an example.
Thanks. It works. I had raised another issue on the same. Using both i am able to solve the problem now. #34
Closing this. Thanks
Planning to send a notification using firebase. It is successfully received at device. So far no issue. i want some guidance how to get the below discount key value (10), when i click the notification from system tray.
The below is sent from node.js server using FCM.
Expected behavior
App is opened when I click the notification on system tray (android), but i want to capture the 'discount' key value in my first index.js
I was expecting my localStorage being set with the data i sent from server. But it is not set. Any guidance on what am I missing.