hi, if I insert a string the message works, but if I leave (value) the message does not arrive
map = CreateMap("body1":value,"title1":value)
I thought maybe I need to convert from map to string
does anyone have an example?
Message arrived
Message data: ID 0:1532375920742306%959093b8f9fd7ecd, Data {body=GOOD DAY, title=HELLO}
Message=(RemoteMessage) com.google.firebase.messaging.RemoteMessage@be88JU
body1:
title1:
map=(MyMap) {body1=, title1=}
map = CreateMap("body1":value,"title1":value)
I thought maybe I need to convert from map to string
does anyone have an example?
Message arrived
Message data: ID 0:1532375920742306%959093b8f9fd7ecd, Data {body=GOOD DAY, title=HELLO}
Message=(RemoteMessage) com.google.firebase.messaging.RemoteMessage@be88JU
body1:
title1:
map=(MyMap) {body1=, title1=}
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 String
Dim map As Map :map.Initialize
map = CreateMap("body1":value,"title1":value)
For Each key As String In map.Keys
value = map.Get(key)
Log($"${key}:${value}"$)
Next