I've implemented MyFirebaseMessagingService and I'm trying to get data passed in push notification.
In onMessageReceived I can see in the debugger that data is here:
The exact data I need is in "value[2]".
The entity called "value[2]" is pretty strange to me, what exactly is the key then? Is it 2?
remoteMessage.getData().get(2)
returns null...
Even
remoteMessage.getData()
returns an empty array:
System.out.println("DATA DUMP: " + remoteMessage.getData());
I/System.out: DATA DUMP: {}
Why is it empty when I can see it in debugger and how can I access this data?