Disable notification badges

AIDL interface

Interface Details

  • Package Name: 'com.wizarpos.android.home'

  • Class Name: 'com.wizarpos.android.home.service.LauncherApiService'

  • Before using the interface, ensure the package is imported and necessary permissions are added to the Android manifest file.

  • 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);

Enable/Disable notification badges.

Parameters

visable

true: enable; false: disable

Code snippet

Permission

<uses-permission android:name="com.wizarpos.permission.UPDATE_WORKSPACE_NOTIFICATION_BADGE" />

Bind Service

ComponentName comp = new ComponentName(
    "com.wizarpos.android.home",
    "com.wizarpos.android.home.service.LauncherApiService");

Method calling

launcherApiService.setNotificationBadge(isVisible);

Configure in homesettings

Add badgeVisible="false" in <desktop>. For example:

<desktop
    badgeVisible="false">
    ......

Here is the detail information for homesettings configuration.

Last updated