I'm using firebase console and can send only Notification messages using it.
Is there a way to send data messages using the same?
I'm using firebase console and can send only Notification messages using it.
Is there a way to send data messages using the same?
You can now send notification message via the console. Note that it is different from data messages; notification messages only trigger the
onMessageReceived
callback when the app is in the foreground.They are inside the advanced options tab on the compose message screen.
Just expand it and type your key/value map.
These will be included into the data field of the notification.
The Firebase Notifications Console can only be used to send notification messages. It cannot be used to send data messages.
See the table in message types in the Firebase documentation:
You can test both notification message and data message using Postman(rest client for testing http request).See screen shots:
In header pass:
Please look here: Firebase push notifications update DB, my post from June.
In conclusion, you need send HTTP POST request to https://fcm.googleapis.com/fcm/send