Disable notification badges
System Requirement:
SmartPOS launcher version>=2.7.8.
Required Permissions
Include the following permissions in your application's manifest:
'com.wizarpos.permission.UPDATE_WORKSPACE_NOTIFICATION_BADGE'
API Functions
setNotificationBadge
void setNotificationBadge(boolean visible)
throws DeviceException
Show/Hide notification badges.
Parameters
visable
true: show; false: hide
Snippet Code
ISystemDevice systemDevice = POSTerminalAdvance.getInstance().getSystemDevice();
systemDevice.open(this.mContext);
IHomeDevice homeDevice = systemDevice.getHomeManager();
homeDevice.open(this.mContext);
homeDevice.setNotificationBadge(true);
homeDevice.close();
systemDevice.close();
Resources
Demo Application:
Download the Demo App for a practical implementation example.
Configure in homesettings
Add badgeVisible="false" in <desktop>. For example:
<desktop
badgeVisible="false">
......
Here is the detail information for homesettings configuration.
Last updated