Displaying Notifications for Lockdown Menu Items
About this task
This section describes how to configure Lockdown to display notifications for apps authorized for use in Lockdown Mode:
Note: This applies to Android Classic and Work Managed devices using static templates.
The following procedure does not apply to dynamic templates.
Procedure
-
Instruct your device users to grant the SOTI MobiControl agent notification access permissions.
The location of this setting may vary depending on your Android version and device manufacturer. Common paths include:
Also, try searching "notification access."
- In the SOTI MobiControl Console, create a profile that has a Lockdown profile configuration. See Lockdown (Android Classic).
- In the Lockdown profile configuration dialog box, select New to open the Add Home Screen Items dialog box.
-
In the Home Screen Items dialog box, paste one of the
following into the Package Name or Script File or URL
field:
- Below Android 10:
action://net.soti.mobicontrol.VIEW_NOTIFICATIONS
- Android 10 and
above:
launch://net.soti.mobicontrol.androidwork/net.soti.mobicontrol.lockdown.notification.NotificationActivity
Note: Remember the position of this menu item in the menu item list. - Below Android 10:
- Add the rest of your menu items to the Lockdown profile configuration.
Depending on your agent version, you may edit the Lockdown Menu Template to display a notification count.
-
In the Lockdown profile configuration dialog box, select
Templates to open the Edit Menu Template
List dialog box.
See Customizing Lockdown Menu Templates for more information on Lockdown Menu Templates.
- From the menu template list, select the menu template you plan to use with this Lockdown profile configuration and select Edit to open the Lockdown Menu Template Editor.
-
In the
style
section of the menu template, paste the following CSS block:.mc-notification-on { position: absolute; top: 5px; right: 25px; text-align: center; color: white; border-radius: 10px; background-color: red; width: 20px; font-weight: bold; }
-
In a
div class="row"
section, paste the following line as a new entry:<li><a href ="<MCLinkX>"><img src="<MCDispImgX>" /><div class="txt"><MCDISPX></div></a><MCNotificationX></li>
TheX
in MCLinkX, MCDispImgX, MCDISPX, and MCNotificationX represents the item's position in the Lockdown menu item list. For example, if the notifications menu item were third in the Lockdown menu item list, you would replace MCLinkX with MCLink3. - Save the new template and finish configuring the Lockdown profile configuration.
Results
Notifications for all authorized apps appear in one location for devices with Lockdown mode enabled.