Obtenir la valeur de RemoteMessage de la FCM onMessageReceived méthode

J'ai migrer gcm to fcm pour le push notification de message.
mais la façon dont je m'faisceau de données à partir de RemoteMessage reçu onMesssageReceived méthode.

Old GCM give bundle data onMessageReceiced method but in FCM there is RemoteMessage data.

Alors merci de me dire comment je parse remotemessage pour obtenir toutes les valeur de la notification.

MON PAYROL

{
"collapse_key":"score_update",
"priority":"high",
"content_available":true,
"time_to_live":108,
"delay_while_idle":true,
"data": 
{ 
    "message": "Message for new task",
    "time": "6/27/2016 5:24:28 PM"
},
"notification": {
    "sound": "simpleSound.wav",
    "badge": "6",
    "title": "Test app",
    "icon": "myicon",
    "body": "hello 6 app",
    "notification_id" : "1140",
    "notification_type" : 1,
    "notification_message" : "TEST MESSAGE",
    "notification_title" : "APP"
  },
"registration_ids": ["cRz9SJ-gGuo:APA91bFJPX7_d07AR7zY6m9khQro81GmSX-7iXPUaHqqcOT0xNTVsOZ4M1aPtoVloLNq71-aWrMCpIDmX4NhMeDIc08txi6Vc1mht56MItuVDdA4VWrnN2iDwCE8k69-V8eUVeK5ISer"
]
}

OriginalL'auteur Jatin Patel | 2016-07-07