Can't toggle "Push Notifications" on new phone

Hey, so weird issue, but I upgraded to a Pixel XL 2, and for some reason, I can’t toggle “push notifications” on the phone. I tried setting up a new cloud messaging setup. It works on my tablet and my computer, but still can’t work. I wen’t through the settings and don’t see anything that would restrict it. Everything else works fine.

Is anyone else having this issue/found a solution?

are you able to get the push notifications to work on other devices though? I think i heard something about this on the discord channel yesterday.

Hey, yeah, it still works on my computer, old phone, and tablet. Just on my new phone. I know it’s not a home assistant issue, but checking if anyone had the same issue or had a fix

That’s strange. It has to be something with the phone. Which is weird, I just got a new Pixel 2 XL and my notifications turned on just fine.
Pixel 2 XL with Verizon.

Hm yeah, it’s weird. It worked on an old tablet of mine. I just can’t figure out what chrome setting would stop it from running on the new phone.

The only time I could get the option was if I wasn’t using the local address. I had to use the DDNS name or via outside network.

Are notifications turned on for Chrome? It might be turned off and the HA webapp might not ask for permission to send them for some reason.

Yeah, I’ve gotten the notification request from other sites. Plus on my tablet, I hit the toggle and then got the notification request, this won’t toggle at all, just kinda highlights the line

Yeah, I use dns/ssl and home assistant works fine but inside and outside my network but the toggle just doesn’t move on my new phone

Just a quick google search shows that you’re not the only one with push notifications and Pixels. Are you on Oreo? seems like there’s some push notification issues.

You could always try the 8.1 beta. They may have pushed out a fix with it.

That’s actually what I’m on now, didn’t work on either… It’s kinda annoying. Still works on my old phone too

Yeah, 8.1 beta. Yeah, it seems to be some kind of issue with chrome/ Android

I’m using android 7.0 on a Nexus 6 and I’m having the same problem. Some time ago I got push notifications on my phone just fine, but I had to factory reset it.

When I tried again a few minutes ago, it’s like the toggle switch was just dead.

I tried with my laptop, and it enabled push notifications and received one just fine.

Then I tried a website called gauntface.github.io, which is just a push notification tester, and it worked fine as well.

Whatever it is, it’s not specific to 8.1 or Pixel.

I’ve been doing some testing, and I’ve replicated the problem on the same laptop that was working before. The Push Notifications toggle is gray and clicking it has no effect.

My phone was getting a 404 error for a file /frontend/panels/map-565db019147162080c21af962afc097f.html which was referenced in a file called manafest.json. Both my laptop and desktop were downloading it fine.

I cleared the application cache from my laptop and both that file and the push notifications toggle stopped working. On my desktop it’s still working, but it still has that panels/map file saved from almost exactly a month ago.

I think that file is key. It might be broken for many systems, but as long as that map file is cached in local storage it’ll still work.

I’m running 0.56.2.

I was encountering the same issue, but on Chrome on desktop. Notifications worked on my Android device, but I could not add new devices to the push notification list.

Given the 404 error URL was related to map, I decided to toggle the map component on. I don’t really have any need, but it was for testing purposes. Added to to configuration.yaml, restarted HA, and the Push Notification toggle was fixed.

Maybe you could fiddle with the map component in your install?

For me, the map panel doesn’t actually appear, but I’m fine with that – I didn’t use it before anyway. (Edit: Now I see it’s in the menu…that’s fine, at least notifications work now…)

It appears that the web service workers were not gracefully handling the map 404, as I’m now also getting a reminder from HA to add to homescreen (“shelf” on Chrome desktop).

HA 0.56.2
Chrome 62

So that map file was for a literal map? I figured it was for ‘command mappings’ or some such.

I turned on the map component and that cleared the 404, but the push notification still isn’t working on any of the computers that I’ve ‘cleared’. I only have one computer left working so I’m going to try to delete the cached files one by one and see if a ‘new version’ stops the push toggle from working.

I deleted every file, one by one, cleared all the cache. Both my laptop and desktop were running chrome 61.0.3163.100. I could not get my laptop to work and I could not get my desktop to fail.

Then chrome updated to 62 on my laptop, relaunched it, and it worked perfectly. Swiped off all my phone tabs, loaded HA in a new tab and it worked too. Everything works and I can’t really point to a reason why. My current working theory involves ghosts.

Though I guess I had fixed the map file before I started deleting stuff off the desktop. Maybe a missing map file gets it into a bad state that can only be resolved by relaunching chrome, either from an upgrade or from the last tab on a phone being closed.

I just upgraded to 0.57.2 and it started working again (maybe it was a chrome update or the HA update, but either way, it seems to be working now (I made no other changes).