I have migrate gcm to fcm
for push notification message.
but how I Get bundle data from RemoteMessage received onMesssageReceived method.
Old GC
For your data that looks like:
"data":{
"message": "Message for new task",
"time": "6/27/2016 5:24:28 PM"
}
you should get them through
Log.d(TAG, "Key Data : " + remoteMessage.getData().get("message").toString());
Log.d(TAG, "Key Data : " + remoteMessage.getData().get("time").toString());
Wrap them in try catch to be sure