Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can Firebase Console send data payload?

Is it possible to send data payload through Firebase Console that we can receive in onMessageReceived() while our app is in background/killed?

Image.

like image 447
Hisham Muneer Avatar asked Jun 22 '16 11:06

Hisham Muneer


1 Answers

It doesn't seem like the Firebase Console has the option to send "data" type messages. If you set the custom data fields in the Firebase Console, those will be delivered but only if your app is in the foreground. You need to implement your own FCM sender or use a 3rd party to send data type messages.

See this answer for more details about the two types of Firebase messages

like image 74
ashishduh Avatar answered Sep 21 '22 17:09

ashishduh