Android Question Notification without Number (B4A 8.0)

brunnlechner

Member
Licensed User
Longtime User
Hello,
since B4A 8.0 my Icon has a notification number like B4A-Bridge.
Is it possible to make norifications without notification numbers?

Thank you
Franz
 

DonManfred

Expert
Licensed User
Longtime User
What do you mean with "notification numbers"?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Ahh, i see... I was not aware that this happens with B4A 8 when using Notifications...
It is a nice feature btw... In the past you needed to use a Library to add a Badge to the App-Icon.

You can try to use my ShortcutBadger library and then remove the Badge if you dont want this to happen.
B4X:
Sub Globals
  'These global variables will be redeclared each time the activity is created.
  'These variables can only be accessed from this module.
  Dim badge As ShortcutBadger
End Sub

Sub Activity_Create(FirstTime As Boolean)
  'Do not forget to load the layout file created with the visual designer. For example:
  'Activity.LoadLayout("Layout1")
  badge.Initialize()

  'badge.applyCount(17)
  badge.RemoveCount ' Remove the badge after you set a Notification
End Sub
 
Upvote 0
Top