Hi, Im using Service.StartForeground in my service.
As noted in the other Threads I code:
And there are two weird results.
-When the service is started, the icon is OK but the "TITLE" is replaced by the app name and the "SUB_TITLE" by "Touch to obtain more information..." and if you touch you are redirected to the Android app form from where you can Stop and Unistall and etc...
-The other weird behavior is that when you lunch a real notification from your app these initial service notification is replaced by the new notification, it works ok touching it and going to the activity I want but... stays with the title and subtitle of the last notification and cant be deleted from the notification pad. Then been confusing to the user.
Tested using SetInfo and Setinfo2
Am I doing somethig wrong? Android 4.3
As noted in the other Threads I code:
B4X:
snotif.Initialize
snotif.Icon = "logo.png"
snotif.SetInfo2("TITLE","SUB_TITLE",0,mDashboard)
snotif.Sound = False
snotif.Notify(1)
Service.StartForeground(1,snotif)
And there are two weird results.
-When the service is started, the icon is OK but the "TITLE" is replaced by the app name and the "SUB_TITLE" by "Touch to obtain more information..." and if you touch you are redirected to the Android app form from where you can Stop and Unistall and etc...
-The other weird behavior is that when you lunch a real notification from your app these initial service notification is replaced by the new notification, it works ok touching it and going to the activity I want but... stays with the title and subtitle of the last notification and cant be deleted from the notification pad. Then been confusing to the user.
Tested using SetInfo and Setinfo2
Am I doing somethig wrong? Android 4.3
Last edited: