i am getting auto bade in android app. how do i reset it zero.
How to set badge value zero again in android?
Didn't find what you were looking for?
New post-
Jenn Miller
Hello Mohit,
Badges are an iOS feature. Android does not have badges or autobadges. Urban Airship also does not support badges or autobadges for Android; it is not implemented in our API or Android SDK. If you are referring to iOS, autobadging automatically adjusts badge values based on the number of unread messages in the Message Center. The autobadge value is normally reset to 0 when a device registers. Our iOS guides have more information on Badges and Autobadges if you're interested.
I hope this helps. Please let me know if you have any other questions or concerns.
Comment actions -
question: why are badges not supported in Android? it's something very basic that I still can't fathom being not supported.
Comment actions -
Jenn Miller
Hello Alberto,
At the time Mohit wrote in, badges were not supported by Android. With the release of Android O, you can now use notification dots, which are badges that appear on the app icon when a notification is received. They are enabled by notification channels. For more information on setting up these features, please see the resources I've attached below:
Comment actions -
Thank you Jennifer for your answer! this is a start, but we support devices from Android 4.2 on, and as you know, Android O right now is installed only on 0.2% of the devices.
Comment actions -
You can try out this extension library to introduce support for badging on android as well.
https://github.com/Knight704/UrbanAirshipBadgeCounterAndroid
Since it is not supported by platform out of the box for android you should control badge value within extra payload
Comment actions
Please sign in to leave a comment.
Comments
5 comments