Service notification allows user to uninstall app. Can it be "hidden"?

// Expert user has replied.
S Shaun Peusschers 1 year 11 months ago
0 7 0

My company has an enterprise application that starts in Kiosk Mode.

When we start a foreground service / service in android the Service notification is shown and the user can click on it and then eventually disable/uninstall the application.

Is there a way to not show the notification? Or even another way of starting the foreground service?

Regards,

Please register or login to post a reply

7 Replies

A Alfred Teixeira

Hello,

Have you tried the following: mBuilder.setOngoing(true); ?

E Edward Correia

On devices with MX 11.3 or later, notifications can be controlled in whole or individually by app: 

https://techdocs.zebra.com/mx/notificationmgr/

I also recommend checking the EHS Security Notes section for additional info about user access to notifications: 

https://techdocs.zebra.com/ehs/4-1/guide/features/#securitynotes

S Shaun Peusschers

Thank you very much!

Are there examples of using
https://techdocs.zebra.com/mx/notificationmgr/

I also saw that setting the importance of the notification to low does not show it, BUT does that effect the lifetime of the service?

Regards,

S Shaun Peusschers

Hi,

If the Application would be killed by Android for using to much resources or it stopping the service.

E Edward Correia

Please clarify what you mean by "lifetime of the service." 

I will ask engineering for samples. If provided, they will be posted at: 

https://techdocs.zebra.com/mx/notificationmgr/

S Shaun Peusschers

Thank you!

E Edward Correia

Notification Manager XML samples are posted: 

https://techdocs.zebra.com/mx/notificationmgr/#examples

I hope you find them helpful. 

-E.Correia

CONTACT
Can’t find what you’re looking for?