Android Question Why does not this code show a notification? [SOLVED]

interlnk

Member
Licensed User
Why does not this code show a notification? Produces sound, but does not display "Hi" in the notification area.

B4X:
Sub Service_Start (StartingIntent As Intent)
    Dim Noti As Notification
    Noti.Initialize
    Noti.SetInfo("Title", "Hi", Main)
    Noti.Notify(1)
End Sub
 

mangojack

Expert
Licensed User
Longtime User
Try this
B4X:
Sub Service_Start (StartingIntent As Intent)
    Dim Noti As Notification
    Noti.Initialize
    Noti.Icon="icon"
    Noti.SetInfo("Title", "Hi", Main)
    Noti.Notify(1)
End Sub
 
Upvote 0
Top