M Mostez Well-Known Member Licensed User Longtime User Jan 6, 2023 #1 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
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 Expert Licensed User Longtime User Jan 6, 2023 #2 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. NB6 - Notifications Builder Background The notifications features changed a lot as Android evolved. Android 8 (with targetSdkVersion 26+) adds another complexity with the introduction of notification channels. The built-in Notification object was rewritten in B4A v8 to work properly with all versions. This is a good... www.b4x.com Upvote 0
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. NB6 - Notifications Builder Background The notifications features changed a lot as Android evolved. Android 8 (with targetSdkVersion 26+) adds another complexity with the introduction of notification channels. The built-in Notification object was rewritten in B4A v8 to work properly with all versions. This is a good... www.b4x.com
M Mostez Well-Known Member Licensed User Longtime User Jan 9, 2023 #3 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
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'