Android Question How to show image (and rich text) inside a firebase notification?

Hi!

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):
map with image:
CreateMap("title": Title, "body": Body, "image": "https://wxy.com/image.jpg")

without result.
 
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)
 
Upvote 0
Top