interlnk Member Licensed User Jul 8, 2018 #1 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
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 Jul 8, 2018 #2 What version B4A are you using ? from v8.00 I think Noti.SetInfo() must be the last call / step .. https://www.b4x.com/android/forum/threads/version-safe-notification.87663/#content Upvote 0
What version B4A are you using ? from v8.00 I think Noti.SetInfo() must be the last call / step .. https://www.b4x.com/android/forum/threads/version-safe-notification.87663/#content
interlnk Member Licensed User Jul 8, 2018 #3 I'm using B4A 7.80 version. The Android version is 6.0, but also 4.3 Upvote 0
mangojack Expert Licensed User Longtime User Jul 8, 2018 #4 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
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