IOS app stuck with "5" badge

I send a push notification to the IOS app and I am now stuck with the “5” badge on my app. How can I remove this?

Somewhere in your automation you have badge set to “5”. Change this to “0”. This will clear the badge on the icon.

1 Like

From the Service panel using the notify service for your device you can wipe away the 5 with this.

{"message":"This will remove the Icon number.","data":{"push":{"badge": 0}}}

however you need to find the automation that is setting the badge to 5.

3 Likes

Thanks it’s gone now. Didn’t work the first time weirdly.

You can now also send this special message to clear the badge:

{"message":"clear_badge"}

There is also an option in the app to reset the badge.

I’m not nitpicking with this comment and I completely understand this is a super beta work in progress, I’m just trying to understand how the badge thing is intended to work… so in the docs, is says we can set the badge number in the data of the message. But we then have to manually clear it in the app or by sending another notification. In the app, there’s no way to view the accumulated messages, only in Notification Center. Is this all part of a work in progress or are we supposed to create some automations for clearing badges? Anyone have examples? Thanks!

I was assuming the number in the badge isn’t about the number of messages you have. It’s a way of denoting something using a number.

So maybe if your alarm was set in home mode you’d have the badge say 1 but in away mode say 2. When triggered it might say 999.

At least that’s what I’m doing anyway :slight_smile:

1 Like

Is it possible only to push a badge number without a message? I would like to show a badge number when certain things occur without the popping up message.

1 Like

How do you send that special message as part of a automation action?

Nevermind, if any one cares it looks like this.

action:
  service: notify.ios_xxxxx
  data:
    message: "clear_badge"

I had to use

action:
  service: notify.ios_xxxxx
  data:
    message: clear_badge

It wouldn’t work for me with the quotation marks around clear_badge

Noob question: but what is exactly the function of those badges?

Badge nummer can be reset in the app

Goto the setup page at bottom off this page there is option. Notify setup

At the bottom of page is the reset button “ set badge to 0”

Well for example when my alarm is armed home my badge is 1 and when armed away it’s 2. If triggers it shows 999 :smile:

Means I can tell my alarm state simply by looking at the home screen on my phone without opening apps.

1 Like

Hi, I know this thread is 3 years old, but I don’t see any button to reset the badge count from the app. Is this still possible?


App Configuration > Notifications > Reset Badge to 0

Apologies, for I should have been more specific. It was slightly off-topic, but I was asking about the Android companion app. The Reset Badge to 0 option does not exist.

Also, within the app it says I have 1 notification, but the app badge says 24…

The “1” in the app is actually the number of persistent notifications, which aren’t the same as push notifications.

I didn’t think the Android app actually supported setting the badge number for notifications, so the badge on the app icon is either from Android or the launcher you use, and would normally reflect the number of unread Home Assistant notifications in the Android notification bar.

The “24” badge on the Home Assistant companion app has been the same since I first installed it 3 months ago. It never changes whether I have actual notifications from HA or not, and has no relation to the number of notifications I have on my Android in general because those change every day but the app badge is persistently stuck at “24”… Majorly frustrating!