Commit 16fcacb7 authored by Libin Lu's avatar Libin Lu Committed by GitHub

Merge pull request #424 from zaro/master

Provide collapse_key, from, mesage_id, and send_time in foreground notificaitons
parents 680679af 449cd0b7
......@@ -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