home-assistant / home-assistant/iOS

`clear_notification` message will not update badge value over cellular (outside local push?)

Open
#2,462 3 comments 1 reaction 0 assignees View on GitHub
bug ios
Dominant language
Swift
Stars
2.4k
Forks
520
Avg merge
7h 27m
Merged PRs (30d)
264

Description

**iOS device model, version and app version**
Model Name: iPhone 15 Pro Max
Software Version: iOS 17.1.1
App version: 2023.7 (2023.471)

**Home Assistant Core Version**
Home Assistant Core 2023.10.5
(Frontend 20231005)

**Describe the bug**
When pushing a `badge` value as part of a `clear_notification` message, if connected to Wi-Fi and using local push, the notification is dismissed and the badge value updated.
When connected to cellular, the notification is cleared but the badge value remains unchanged (regardless if 0 or above).

**To Reproduce**
```yaml
service: notify.jamie
data:
title: 'Home Assistant'
message: 'clear_notification'
data:
push:
badge: 99
```

**Expected behavior**
Consistent behaviour either setting the value or not — preferably, `clear_notification` will allow badge updates silently in the background.
(I'm aware of `delete_alert`, which is similar, but different. It does not clear the notification unless setting the badge to 0 — clearing _all_ notifications).

**Screenshots**
https://www.dropbox.com/scl/fi/5qb47a3xjjfwfdma4cnke/home_assistant_notification_bug.MP4?rlkey=h2lcwj63invrub7jmktlt3jzs&dl=0
(Video showing push over Wi-Fi, then failing over cellular, and the successfully back on Wi-Fi)

**Additional context**
In the above video `notify.jamie` is a group notifier that links 3 `mobile_app` notifiers.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.