For Android Web Push notifications, the badge refers to the small icon shown on notifications—not the app icon—and can be customized. See Web Push Badges.
Android badges
Android app icon badge behavior can be managed through Android notification categories. You can control whether a category (channel) displays a badge and set badge behavior on a per-category basis.Huawei badges
On Huawei devices, a badge can be displayed as a number or a dot on the app icon, depending on the user’s device settings. Badges help indicate unread messages or pending actions, encouraging users to open the app. OneSignal lets you control Huawei badge counts directly through the dashboard or API.How Huawei badges work
How Huawei badges work
The badge displays on the app icon as either a numeric count or a dot, depending on the user’s device setting (Settings > Notifications > App icon badges). Your API call controls the underlying count; the device decides the visual style.Parameters
Behavior rulesClearing badgesHuawei does not automatically clear the badge when a user opens the app or taps a notification. To clear the badge, you have two options:
| Parameter | Type | Range | Description |
|---|---|---|---|
huawei_badge_class | string | — | (Required) Fully qualified class name of your app’s launcher Activity (e.g., com.example.myapp.MainActivity). Tells the Huawei system which app icon to badge. |
huawei_badge_set_num | integer | 0–99 | Sets the badge to an exact number. 0 clears the badge. |
huawei_badge_add_num | integer | 1–99 | Increments the existing badge count by this amount. |
huawei_badge_classis required for any badge operation.- If both
huawei_badge_set_numandhuawei_badge_add_numare provided,huawei_badge_set_numtakes priority. - If neither is provided (but
huawei_badge_classis set), the badge count increments by 1 by default.
- Dashboard
- API
- Go to Messages > Push or Templates
- Under Platform Settings > Send to Huawei Android > Badge
- Choose either:
- Don’t set — badge is not affected by this notification
- Set to — sets the badge to a specific number (0–99)
- Increase by — increments the existing badge count (1–99)
- Via the API or dashboard: Send a notification with
huawei_badge_set_numset to0(or use Set to > 0 in the dashboard). This can be a data/background notification if you don’t want a visible notification to appear. - Via client-side code: Your app can clear the badge locally using the Huawei badge API. This requires the
com.huawei.android.launcher.permission.CHANGE_BADGEpermission in yourAndroidManifest.xml. See Huawei’s badge development guide for implementation details.
The
huawei_badge_set_num parameter requires EMUI 10.0.0 or later and Push SDK 10.1.0 or later. On older devices, only huawei_badge_add_num is supported.iOS badges
To ensure badge counts increment correctly on iOS, you must configure:- The
OneSignalNotificationServiceExtension - App Groups
- Clear the app icon badge when the app is opened.
- Remove notifications from the Notification Center.
- Reset badge when the app launches or resumes
- Increment badge when a notification is received in the foreground
- Decrement when a message is read or dismissed
- Sync badge state across devices or app extensions via App Groups or your backend
Disable automatic notification and badge clearing
In your app’sinfo.plist, add the Key: OneSignal_disable_badge_clearing with Boolean type to Value YES

iOS native badge management
If you disable OneSignal’s automatic badge clearing, you can use Apple’s native APIs to control badge behavior. Set badge count To set the badge on the app icon to a specific value:UserDefaults, your app’s data model, or syncing with your backend).
Send iOS push with badges
You can set the badge count in the OneSignal dashboard or using the API.- Dashboard
- API
- Go to Messages > Push or Templates.
- Under Platform Settings > Send to Apple iOS > Badges.
- Choose either:
- Set to a specific number.
- Increase by a relative amount.

FAQ
Why isn’t my badge count incrementing on iOS?
Ensure you have configured theOneSignalNotificationServiceExtension and App Groups. Without these, badge counts cannot increment correctly. See Mobile SDK setup for full instructions.
How do I clear badges on Huawei?
Send a notification withhuawei_badge_set_num set to 0, or use Set to > 0 in the dashboard. You can also use a data/background notification to clear badges without showing a visible notification. Alternatively, clear the badge client-side using the Huawei badge API.
Can I set badges for web push?
No. App icon badges are only supported on iOS, Android, and Huawei. For Android web push, the “badge” refers to the small icon shown on the notification itself — see Web Push Badges.Related pages
Android notification categories
Control badge display and behavior per notification channel on Android.
Huawei authorization
Set up Huawei push messaging with OneSignal.
Push overview
Full reference for push notification features including web push badges.
Mobile SDK setup
Configure the OneSignal SDK including badge prerequisites for iOS.