iOS icon indicating copy to clipboard operation
iOS copied to clipboard

Local push disabled on internal URL

Open erkr opened this issue 10 months ago • 8 comments

iOS device model, version and app version

Model Name: iPhone 14 Software Version: 18.1 App version: 2025.2 (2025.1117)

Home Assistant Core Version 2025.1.4

Describe the bug Local push and SSID's are enabled in the settings for internal URL. But I see a status of being connected internally, where local push remains disabled

To Reproduce

Expected behavior Can't judge if either the status is displayed wrong, or local push actually doesn't switch on when connected internally

Screenshots image

Additional context Maybe relevant: my external url is identical to the internal because I use an on-demand VPN connection to my home when I'm not connected with one of my own SSID's

erkr avatar Feb 03 '25 08:02 erkr

Issue still persists on latest version 2025.1175

erkr avatar Feb 26 '25 17:02 erkr

Do you have location permission "Always" allowed?

Also please try rebooting your phone

bgoncal avatar Feb 27 '25 00:02 bgoncal

@bgoncal Location Always is allowed and my phone was rebooted several times since reporting the issue. Not sure if the status reported in the settings is wrong, or local push is indeed disabled. Is the a way to verify that? Best Eric

erkr avatar Feb 27 '25 08:02 erkr

When I saw your report I tested it in several devices at my place in 3 different networks and I couldn't reproduce, is it possible that you have the SSID incorrectly there? Perhaps one trailing space or something like this. If you also have a way to try in a different network, it would be interesting to debug.

Meanwhile after you try that, drop me your companion app logs please https://forms.gle/Uoqz127Phx4mMTpS6

bgoncal avatar Feb 27 '25 08:02 bgoncal

Done. SSID's are correct (App also mentions it is using the internal URL). Did another reboot of the phone before uploading the logs. Hope it helps

erkr avatar Feb 27 '25 16:02 erkr

@bgoncal where the log files of any use? Can I do more?

erkr avatar Mar 02 '25 16:03 erkr

Sorry for the late reply, I was on vacations, I couldn't find the root cause yet by checking the logs, it's on my todo list to investigate this

bgoncal avatar Mar 17 '25 08:03 bgoncal

Update - I noticed this debug-user limits menu item in the companion app:

image

I received several notifications today. So does that imply local push notifications are enabled, but it's just the state in the menu that suggests not?! Or do I misunderstand?!

erkr avatar Mar 28 '25 15:03 erkr

This is still broken, however I have discovered that iOS updates (and/or perhaps app updates) turn local push off in the companion app settings. Local push can be turned on again by clicking on "internal URL" in the server settings of the companion app settings in HA, then restarting the HA app.

Gazoonky avatar Sep 03 '25 05:09 Gazoonky

@Gazoonky Thanks that works. I missed the need to restart the app after enabling local push on the internal URL. I now have this: image No clue what the number (0) means?! Update: the number of notifications send

erkr avatar Sep 03 '25 07:09 erkr

@bgoncal Based on the new insights, it seems we have two issues with local push:

  • setting local push gets disabled after an update (iOS and / or app?!). I recently updated both. So can't confirm which of these updates disabled it
  • enabling local push requires an app restart to become active

erkr avatar Sep 03 '25 07:09 erkr

setting local push gets disabled after an update (iOS and / or app?!). I recently updated both. So can't confirm which of these updates disabled it

Correct, due to high battery consumption and the average user not even knowing what local push is, it was decided to turn it off by default, so a side effect of one of the latets updates was having it turned off.

enabling local push requires an app restart to become active

The root cause of this is still unknown to me, I was also able to make it work again by turning off wifi waiting a bit and turning it on again.

bgoncal avatar Sep 03 '25 11:09 bgoncal

I'll add that, for me, the only reason I know what local push is is that a couple months ago it became the only way I get push notifications from HA. Non-local push notifications had just stopped working, and when I looked into it, I discovered local push and that it worked. And then when local push would stop working too, I would notice each time.

cvincent avatar Sep 03 '25 23:09 cvincent