1

Pushover for Desktop should show a button to register browser notifications

I'm unable to grant notifications permissions in Safari.

When I load the page, I see the error:

An error occurred while trying to show a browser notification. To give Pushover permission to show notifications, click the icon next to the URL in the bar above and set "Notifications" to "Allowed" or "Always allow", then click the reload button.

And in the console: "Notification prompting can only be done from a user gesture."

The toolbar version of website settings doesn't show options for Notifications. In Settings > Websites > Notification, there is no listing for client.pushover.net, and the setting "Allow websites to ask for permission to send notifications" is enabled.

So the request-on-load behavior will never work in most browsers, the error message is inaccurate, and Safari users have no way of manually granting permissions. Could you add a button to the page error message that calls askLocalNotificationPermission to request notifications?

Related: https://support.pushover.net/i308-web-push-registration-fails-against-safari-17-5

1 reply

NC

For posterity, until this is fixed:

Edit the page source to add

<button onclick="_Pushover.prototype.tryWebPush = true; _Pushover.prototype.askLocalNotificationPermission()">Request Permissions</button>

anywhere to the page, and click it.