iOS Push issues with only one iPhone

So recently, one of my long running push automation stopped working. For a while I assumed it was user error so I really did not mess with it much. Anyway, after playing around with the automation, I discovered that my wife’s Iphone is getting authentication errors

2019-11-09 19:02:17 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from **my IP**

The same automation and push notification works just fine from my phone. I’ve reset the settings on her phone, logged out, and back on and it’s made no difference. She does not have a new phone and this automation has been working for about a year. Anyway, seems like she is on a blocked list?? How do I fix that, I have no idea where to being looking.

I’ve continued to look and still not finding anything. More details if it help.

My Wifes Iphone received the same actionanble notification that I do. If she selects an action, HA does nothing and puts the message about logon with invalid IP. If I select the notification from my phone it works.

what app version are you running?

We are both running 1.5.1 and the current iOS

I am on an iphone 8s, and the one that does not work anymore is a 6s plus

You probably have to uninstall the app and reinstall it. You can also try clearing her safari cache too, but that hasn’t worked in the past for me. Either way, it seems like her phone is holding on to old credentials. Also, I recommend making a HA user for her and using those credentials. Just make her a user and not an admin.

I will defintiely do that. I actually already have created her a non admin account. With seperate credentials. I signed out and back in , but an uninstall sounds like a good idea!

If I remember correctly, both the new and old app use safari caching. So clearing out your safari cache should work.

So weird, and strange, I have uninstalled the app, cleared the cahce, signed out, reset settings, restarted HA, etc. Still get access denied when attempted to to an actionable notificaton from her phone. She can control all the HA devices in the front end, just the actionable notifications seem to be the issue. Does not matter if its Wi-Fi or cellular connected. Maybe I’ll reset her password, I have not tried that

I deleted her user and created a new user, and still am getting invalid attempt. Is there a list of devices that have been black listed that I can look for?

Had similar issues before, and endpoints disabled etc etc.
What helped me was deleting the entities in the registry, and restart HA.
And, of course, after each change in notification settings, update accordingly using the settings in the app…

In my entiry registry I just see battery level and battery State. Is there somewhere else I should delete? This is a good idea, just need make sure to clean it all out. :slight_smile:
Thanks

the obvious one is the device_registry, though I think only your phone itself is listed there, and not the HA instance of your app.

what I just did yesterday to get things going again after having setup a new phone, is rename the device_id in the app. This is the id that is used for the iOS messaging. Make it different from your phone name, as in the iPhone settings general/info/name.

that way at least you can easily check if the devices are added correctly in known_devices.yaml, which would be the 3rd place you check and delete old entries :wink:

just finished my iOS messaging center to be able to check it all :slight_smile:

I’m totally confused, but still unable to get this working. Here is what I have done

  • Signed out and back in
  • deleted user and recreated user in HA front end
  • Deleted iOS app, reset app, cleared safari cache
  • changed notify name
  • Deleted from entity registry UI and in the .storage core file
  • Restarted HA several times during these processes

It’s just one phone, and this phone had been working for months, probably stopped working in the last few updates, but not sure if it an iphone update, or HA update, but regardless, Still unable to get anywhere with actionable notifications. She get’s the notification, just unable to take “action” always gets

2019-11-11 12:05:30 WARNING (MainThread) [homeassistant.components.http.ban] Login attempt or request with invalid authentication from My IP Here

You have a user name setup for her right? And that’s being used in the app?

Nothing in ip_ban.yaml?

Yes, I even deleted the user, and created a new one (since I could not change the password any other way that I could see).

I dont have an ip_ban.yaml (that I can see), and also It bans her from local IP, as well as cellular IP

try these steps, different issue but it worked for me in the past

I’ve tried those again and still no luck. I even signed in to her phone with my username and still get the same error. Is there a way to check the endpoint?

Wow, Unfortunately I have given up for the moment. I had forgotten about .ios.conf so, when I saw that I had hoped it would fix the issue. Unfortunately, even after deleting from .ios.conf, entity registry, uninstalling, reinstalling, renaming, I’m still getting the failed logon attempt.

I powered off my HA instance, and did a hard reset on her phone as well. I’ve used my account and her account. Cleared safari history. I’ll come back to this later.