Push Notifications with VAPID: UnauthorizedRegistration

Hi, I’ve migrated Push notifications from GCM to VAPID.
After get keys and configure HA, notifications on firefox works perfect but in chrome not.
I have tryed to remove and set again configuration but when I send a notification it arrives to firefox but for chrome it fails. Error is:

pywebpush.WebPushException: Push failed: <Response [400]>: <HTML>
<HEAD>
<TITLE>UnauthorizedRegistration</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>UnauthorizedRegistration</H1>
<H2>Error 400</H2>
</BODY>
</HTML>
1 Like

Yes, just delete the HTML registration file, in your config dir, then you are good to go …I had the same issue

This file html5_push_registrations.conf ?

I have remove the content and register the devices again, but not delete the file. I’ll ty it.

EDIT: same result deleteing file.

Hmm, for me it worked, deleted the file, disable push notification on my chrome browser enabled it again, it created a new file, and whas up and running again…
Look on GitHub, there was the same issue created

Finally It works for me, steps:

  • remove all notification subscriptions for all devices, by front-end configuration
  • then delete file html5_push_registrations.conf
  • reboot HA
  • Activate notifications again.

Thanks

Good job :wink:

I have noticed, than trying 0.91b4 the push fails again. It’s needed to delete the file and re-register devices.

I don’t know if it’s due to 0.91 or when changing version.

Same problem here still.

For me, since I deleted, restart and recreate config file, I have update version and still works.
If you have chrome devices and firefox, edit config file and put chrome first.