Android Question Service with no Icon

tchart

Active Member
Licensed User
So Ive read this thread;

http://www.b4x.com/android/forum/th...und-state-without-using-a-notification.46635/

I was wondering if it is possible with b4a to have an ongoing notification without an icon in the tray along the top. I know this is technically possible as the Pebble app has an ongoing notification in the notification but does not show an icon in the tray along the top.

For now Ive used Service.StartForeground(0, Null) to hide the notification altogether.

Thanks
 

tchart

Active Member
Licensed User
Thanks Erel, this seems to be the official method but whether the icon in the notification tray is shown or not is up to the OS and how many notifications are visible. In my case the icon still shows.

Doing some further research it seems that the only way to guarantee the icon is not shown is to use a black icon and push it to the right (max priority?).

I think for now I will just stick with letting the user choose if they want the notification or not.
 
Top