SOLVED: Trying to get HTML5 notifications to work on android phones

Hi All

I’ve set up the vapid keys, and it’s working on my phone, it works on the laptop if the browser is running, so I guess the skeleton of it is working.
My wife has the exact same phone, but I can’t make it work on heres.
When I activate it there, I get ‘registration failed - permission denied’.
I’ve looked at the notification settings in chrome on the phone, and they are exactly the same as mine are.
So it’s working on my phone, but not heres. She’s logged in as administrator as I am.

What browser?

First you need to see if messages are received on phone. Assuming chrome, browse to address below.

If you send message you can see receipt of message or errors

FOR CHROME
chrome://gcm-internals
FOR FIREFOX
Shows in DevTools console

EDIT
Look at the html5_push_registrations.conf file and make sure her phone or the name is not already registered.

Also try clearing website cache.

Look at phone setting and verify web push is not blocked. Browser settings and Android phone.settings have separate setting for this

1 Like

Ahh, found the culprit.
At first she had the notifications turned off completely, I had reset that.
But for some reason, the nabu casa website was already in the blocked list, even though the entire notification system was blocked, and no notitications was received.
So the testing must have added the nabu casa website to the blocked list, even when the whole notification system was disabled.
So it’s working for here now as well.