Android Question Ongoing notification icon will not appear on statusbar

trueboss323

Active Member
Licensed User
Longtime User
So this seemed to work well before with an earlier version of Android and B4A , but now using the newer versions, it doesn't want to work. The notification icon is not appearing in the status bar anymore. Any help please?

B4X:
Dim n As Notification
    n.Initialize
If ShowIconchk.Checked = True Then
        n.Icon = "nicon"
        n.Sound = False
        n.Vibrate = False
        n.SetInfo("App","App running,"")
        n.AutoCancel = False
        n.OnGoingEvent = True
        n.Notify(1)
Else
        n.OnGoingEvent = False
        n.Cancel(1)
End If
 
Last edited:
Top