java.lang.NumberFormatException: For input string: Data "{body=GOOD DAY, title= HELLO}"
---------->b4a
B4X:
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ID ${Message.MessageId}, Data ${Message.GetData}"$)
Log("Message="& Message)
Dim value As Int
Dim map As Map :map.Initialize
map = CreateMap("body1":Message.GetData,"title1":Message.GetData)
For Each key As String In map.Keys
value = map.Get(key)
Log("valore="+value)
Next