Hi,
I am using Firebase notifications in my app, and I have it displaying the notifications etc, but the icon doesn't seem to show.
I had the same issue once before but I wasn't using firebase etc: https://www.b4x.com/android/forum/threads/notification-icon.82779/#content
Code I am using is:
I noticed that the following tutorial says "If you are using B4A v8.0+ then the standard notifications will work."
https://www.b4x.com/android/forum/threads/version-safe-notification.87663/
What I have done in my code above, is that what the standard notifications is, and should it work or have I done something wrong?
Is there a way to use a custom icon/image? (not the app icon)
I am using B4A 8.00.
Running my App on Android 8.1.0
Target SDK 26.
I am using Firebase notifications in my app, and I have it displaying the notifications etc, but the icon doesn't seem to show.
I had the same issue once before but I wasn't using firebase etc: https://www.b4x.com/android/forum/threads/notification-icon.82779/#content
Code I am using is:
B4X:
Sub fm_MessageArrived (Message As RemoteMessage)
Log("Message arrived")
Log($"Message data: ${Message.GetData}"$)
Dim n As Notification
n.Initialize
n.OnGoingEvent = False
n.Sound = True
n.Vibrate = True
n.Icon = "icon"
n.SetInfo(Message.GetData.Get("title"), Message.GetData.Get("body"), Main)
n.Notify(Rnd(1,999999))
End Sub
I noticed that the following tutorial says "If you are using B4A v8.0+ then the standard notifications will work."
https://www.b4x.com/android/forum/threads/version-safe-notification.87663/
What I have done in my code above, is that what the standard notifications is, and should it work or have I done something wrong?
Is there a way to use a custom icon/image? (not the app icon)
I am using B4A 8.00.
Running my App on Android 8.1.0
Target SDK 26.