Android Question Firebase notification body is ellipsized

Mostez

Well-Known Member
Licensed User
Longtime User
Based on Erel's example code and tutorial, I've added Firebase notification feature to my application, everything is ok unless the notification message is ellipsized, and there is no drop-down arrow to expand it. I tried to send the notification from B4J and also from VB.NET program, and I've got the same result on two different phones (android version 10 and 11)
how to fix this problem.

TIA
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
You need to change the notification type to NB6. Its an internal library now.
Download the example and choose the type you want and implement it in your application.

 
Upvote 0

Mostez

Well-Known Member
Licensed User
Longtime User
I've reviewed some code examples on the web (vb.net, and code example from firebase), I noticed that, when naming key-object in payload 'notification', the notification is displayed as expected, and if named anything else, the text is ellipsized. I've tested it in B4J and VB.NET, like this:
B4X:
    Dim data As Map = CreateMap("title": Title, "body": Body) 'any name for map is ok
    m.Put("priority", 10)
    m.Put("notification", data) 'key must be named 'notification'
 
Upvote 0
Top