I want to send firebase notifications with images and rich texto (p. exam. usijng BCTextEngine / BBCodeView). I have been trying with creating a map including an image/imageURL tag (key):
I found the solution to send the image in the message, just changed the "data" key to "notification"
change key:
rivate Sub SendMessage(Topic As String, Title As String, Body As String, imagen As String) As ResumableSub
Dim Job As HttpJob
Job.Initialize("", Me)
Dim data As Map = CreateMap("title": Title, "body": Body, "image": imagen)
'Dim message As Map = CreateMap("topic": Topic, "data": data)
Dim message As Map = CreateMap("topic": Topic, "notification": data)
This is a possible solution but do understand that with this solution the notification is no longer created by your code. The receiver will not start when a message arrives (similar to iOS notifications).