Commit 449cd0b7 authored by Svetlozar Argirov's avatar Svetlozar Argirov

Provide collapse_key, from, mesage_id, and send_time in foreground reveiced notifications.

parent acda257c
......@@ -207,6 +207,10 @@ public class FIRMessagingModule extends ReactContextBaseJavaModule implements Li
fcmData.putString("action", notification.getClickAction());
}
params.putMap("fcm", fcmData);
params.putString("collapse_key", message.getCollapseKey());
params.putString("from", message.getFrom());
params.putString("google.message_id", message.getMessageId());
params.putDouble("google.sent_time", message.getSentTime());
if(message.getData() != null){
Map<String, String> data = message.getData();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment