Hello everybody,
I'm currently creating my first service, so far thanks to the tutorial i have been able to make it work.
I have chosen the startforeground way to make sure it won't get killed by the OS.
I have done it the standard way:
Now some users complains that the notification cannot get removed (that's logical).
Some of them used this trick: they edited the app preference in OS and disabled the "show notification" option.
That seems to hide everything without the service beeing killed.
Is there a way to achieve the same without manual trickery from the user ?
ie can I keep the service up without the notification on the home screen (the icon of status bar could be ok).
Thanks !
Himred
I'm currently creating my first service, so far thanks to the tutorial i have been able to make it work.
I have chosen the startforeground way to make sure it won't get killed by the OS.
I have done it the standard way:
B4X:
sNotif.Initialize
sNotif.Icon = "icon"
sNotif.SetInfo("xxxx","yyyy",Main)
sNotif.Sound = False
sNotif.Light = False
sNotif.Vibrate = False
sNotif.Notify(1)
Service.StartForeground(1,sNotif)
Now some users complains that the notification cannot get removed (that's logical).
Some of them used this trick: they edited the app preference in OS and disabled the "show notification" option.
That seems to hide everything without the service beeing killed.
Is there a way to achieve the same without manual trickery from the user ?
ie can I keep the service up without the notification on the home screen (the icon of status bar could be ok).
Thanks !
Himred