Wish NB6 add function for setShowBadge

designer2k2

Member
Licensed User
Longtime User
Hello,

it is possible to hide the Badge on the Application Icon if a Notification is shown, but currently NB6 does not expose this.

So I made this locally and it works, maybe it can be added to the internal NB6 also?

More Info on it: https://developer.android.com/reference/android/app/NotificationChannel#setShowBadge(boolean)

B4X:
'Sets whether notifications posted to this channel can appear as application icon badges in a Launcher
Public Sub ShowBadge (bShowBadge As Boolean) As NB6
    If SdkLevel >= 26 Then
        Channel.RunMethod("setShowBadge", Array(bShowBadge))
    End If
    Return Me
End Sub
 
Top