Android Question Service with no Icon

tchart

Well-Known Member
Licensed User
Longtime User
So Ive read this thread;

https://www.b4x.com/android/forum/t...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

Well-Known Member
Licensed User
Longtime 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.
 
Upvote 0
Top