I have this code to show a notification
But sometimes (on a Galaxy Note 8) I have this error
Any idea ?
B4X:
Dim iconcar As Bitmap=LoadBitmapResize(File.DirAssets, "classictruck32blue.png", 24dip, 24dip, False)
Dim nb As NB6
nb.Initialize("default", Application.LabelName, "LOW").AutoCancel(True).SmallIcon(iconcar) 'low importance = no sound.
nb.SetDefaults(False, False,False)
nb.Build(n, m.Get("body"), "tag1", Main).Notify(1)
But sometimes (on a Galaxy Note 8) I have this error
B4X:
** Receiver (firebasemessaging) OnReceive **
** Service (firebasemessaging) Start **
android.app.RemoteServiceException: Bad notification posted from package xxx: Couldn't update icon: StatusBarIcon(icon=Icon(typ=RESOURCE pkg=xxx id=0x00000000) visible user=0 )
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2019)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7225)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Any idea ?