1. Home
  2. SureMDM
  3. How to Hide or Show notifications on android device using SureMDM runscripts ?

How to Hide or Show notifications on android device using SureMDM runscripts ?

KB ID: 42G2110539
Total Views: 202
Last Updated: November 2021

There will be lot of notifications shown on the device notifications panel by different applications on the Android devices. In order to Hide/Show the notifications on devices for any specific applications below SureMDM run scripts would help achieve the same.

1 . HIDE NOTIFICATION:

  • Run Script for Single Application :
!#suremdm
hideNotifications(<pkg1>)

Example:
!#suremdm
hideNotifications(com.nix)

  • Run Script for Multiple Applications :
!#suremdm
hideNotifications(<pkg1>, <pkg2>, <pkg3>, ...)

Example :
!#suremdm
hideNotifications(com.nix, com.gears42.surelock)

Note: pkg1, pkg2, pkg3 – refers to the package name of the applications.


2. SHOW NOTIFICATION:

  • Run script for Single Application : 
!#suremdm
showNotifications(<pkg1>)

Example :
!#suremdm
showNotifications(com.nix)

  • Run script for Multiple Applications : 
!#suremdm
showNotifications(<pkg1>, <pkg2>, <pkg3>, ...)

Example :
!#suremdm
showNotifications(com.nix, com.gears42.surelock)

Note: pkg1, pkg2, pkg3 – refers to the package name of the applications.


Note : “Notification Access” should be turned ON for SureMDM Agent in order to hide the non-sticky notifications on non-EA devices and non-KNOX devices.






Share:

Was this article helpful?

Related Articles