Shalu Samtani Member Licensed User Longtime User Nov 21, 2016 #1 Why my notif info is not change? B4X: Notif.Initialize Notif.Icon = "logo.ico" Notif.Sound = False Notif.Vibrate = False Notif.AutoCancel=True Notif.SetInfo("I-Moto started", "", Main) 'snotif.Notify(9999) Service.StartForeground(1,Notif)
Why my notif info is not change? B4X: Notif.Initialize Notif.Icon = "logo.ico" Notif.Sound = False Notif.Vibrate = False Notif.AutoCancel=True Notif.SetInfo("I-Moto started", "", Main) 'snotif.Notify(9999) Service.StartForeground(1,Notif)
M manuel-r Member Licensed User Longtime User Nov 21, 2016 #2 You have to use notif.icon without file extension (.ico). Upvote 0
Shalu Samtani Member Licensed User Longtime User Nov 24, 2016 #3 still not show the setinfo notif Upvote 0
M manuel-r Member Licensed User Longtime User Nov 24, 2016 #4 Make sure, that your files in \objects\res\drawable are write-protected. If they are not they will be deleted while compiling. Did you test with a not empty body? I'm not sure but maybe empty strings cause failures. Try B4X: Notif.SetInfo("I-Moto started", "some text", Main) Upvote 0
Make sure, that your files in \objects\res\drawable are write-protected. If they are not they will be deleted while compiling. Did you test with a not empty body? I'm not sure but maybe empty strings cause failures. Try B4X: Notif.SetInfo("I-Moto started", "some text", Main)
Erel B4X founder Staff member Licensed User Longtime User Nov 24, 2016 #5 Try it with: B4X: Notif.Icon = "icon" Does it work? Upvote 0