Android Question Notification Icon

Noorul HAQUE

Member
Licensed User
Dear All

I am trying to make notification based on firebase messaging, everthing is working except "icon with number of notification" I need to get same as I attached image.

this is the code I used

n. Initialize
n. Sound=True
n. Icon = "icon"
n. Number= n. Number+1
n. Vibrate=True
n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
n.Notify(1)

If any one could support it will be highly appreciated
 

Attachments

  • 111.png
    111.png
    1.9 KB · Views: 286

An Schi

Well-Known Member
Licensed User
I experienced that the "wrong" icon is displayed when you send a push via firebase console. The correct icon only appears if you use the api to send the push.
Don't know if this is related to your number problem, but might be...
 
Upvote 0

Noorul HAQUE

Member
Licensed User
Hi Erel

Thanks for your feedback my requirement is simple, I am looking for a solution same as I attached below, I need to put number on icon

With Regards
 

Attachments

  • 1111.jpg
    1111.jpg
    19.4 KB · Views: 298
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Last edited:
Upvote 0

An Schi

Well-Known Member
Licensed User
The notification is not related to the push.

Allthough Nooruls question isn't related to this, i'd like to point out, that the notification is related to the push.
I noticed that when i saw that my custom LED color wasn't blinking like it should. When your app is in the foreground everything is ok. But when your app is in the backround the custom parts of the notification only work when you send the push via API. When you send the push via FireBase Console they are not working.

http://stackoverflow.com/a/37365055

or
https://github.com/firebase/quickstart-android/issues/20
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Allthough Nooruls question isn't related to this, i'd like to point out, that the notification is related to the push.
I noticed that when i saw that my custom LED color wasn't blinking like it should. When your app is in the foreground everything is ok. But when your app is in the backround the custom parts of the notification only work when you send the push via API. When you send the push via FireBase Console they are not working.
That's true. You need to use the http request: https://www.b4x.com/android/forum/threads/67716
 
Upvote 0
Top