#Reliably send notifications to Android companion app

1 messages · Page 1 of 1 (latest)

paper marten
#

Hello all,

I can't get notifications to work reliably in my Android (v14) phone. When I'm using the device they work perfectly, but after having it sleep for a few minutes, they get delayed, to the point that I only receive them when I unlock the phone manually.

I'm sending them using:

- action: notify.<my_device>
  metadata: {}
  data:
    message: Test
    data:
      ttl: 0
      priority: high

In Android, I've set Home Assistant notifications to "ignore do not disturb" and they are not Silent. In the HomeAssistant app I 've disabled "Automatically close connection". In the server config I've set "Persistent connection" to "Always".

What am I missing?

obtuse island
#

Sounds like the app isn't able to run freely in the background. Make sure to grant the app background permissions. Also depending on the device manufacturer you may need to dig into device settings and disable anytime else that may impede on the app running in the background

paper marten
#

I already have 😦 This is Google Pixel with Android 14. Long press the app icon > Info > Battery > Allow run in background

obtuse island
#

check mark?

paper marten
#

not sure if the same option, but Settimgs > Apps > Companion app > Battery > Allow backgrond is checked

#

(I'm also have the UI in a different language, so english translantios may not be exact)

obtuse island
#

open the HA app and follow the steps i gave 😉

paper marten
#

.... I'm stupid 🤦‍♂️ I've been looking for weeks and somehow I missed that option