Hey,
I'm playing with the FCM (can't believe how easy it is to use, thanks for that!).
My problem is, I always get a white square instead of an icon in the notification.
I'm using the given standard code from the example:
So it should use the icon in the objects/res/drawable folder. I've checked the spelling and everything is the same.
I tried different sizes of the icon, 24, 48, 96 up to 512 pixels, but everytime I see only a white square.
Has anybody an idea what i'm doing wrong?
I'm playing with the FCM (can't believe how easy it is to use, thanks for that!).
My problem is, I always get a white square instead of an icon in the notification.
I'm using the given standard code from the example:
B4X:
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Dim n As Notification
n.Initialize
n.Icon = "icon"
n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
n.Notify(1)
End Sub
So it should use the icon in the objects/res/drawable folder. I've checked the spelling and everything is the same.
I tried different sizes of the icon, 24, 48, 96 up to 512 pixels, but everytime I see only a white square.
Has anybody an idea what i'm doing wrong?