Android Question Is it possible to use NB6 notification with StartForeground ?

omarruben

Member
Licensed User
B4X:
Service.StartForeground(nid, CreateNotification("something something"))

Sub CreateNotification (Body As String) As Notification
    Dim notification As Notification
    notification.Initialize2(notification.IMPORTANCE_LOW) 'avoid sound
    notification.Icon = "icon"
    notification.SetInfo2("MyApp",Body,"is working",Main)
    Return notification
End Sub
the same code but with NB6 library
 
Top