How to set badge value zero again in android?

i am getting auto bade in android app. how do i reset it zero.

Didn't find what you were looking for?

New post

Comments

5 comments

  • 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 Permalink
    1
  •  

    question: why are badges not supported in Android? it's something very basic that I still can't fathom being not supported.

    Comment actions Permalink
    0
  • 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 Permalink
    0
  • 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 Permalink
    0
  • 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 Permalink
    0

Please sign in to leave a comment.