Push notifications not working (Registration failed - push service error)

Javascript registration to push notifications always throws a DOMException with a message “Registration failed - push service error”. The exact call that throws the DOMException is PushManager.subscribe(). Note that I am not referring to the Notification API that produces visible notifications. Push notifications can be completely silent to user and are subscribed to using Push API and Service Worker API.

To reproduce,

  1. go for example to https://cleverpush.com/en/test-notifications/
  2. press the first big blue button
  3. allow notifications (this refers to Notification API notifications, not push notifications)
  4. The site gives a popup with “Registration failed - push service error” and developer console also shows the same error.

This happens to me on 2 computers, a different push notification test website and also on my own test website 100% of the time.

The expected result is what happens with other browsers (e.g. chrome and firefox), that the subscription to push notification completes and the browser receives a push notification from the server.

OS: Windows 10

Brave is up to date
Version 1.33.106 Chromium: 96.0.4664.110 (Official Build) (64-bit)

Note: Brave “Push Notification Test” website https://support.brave.com/hc/en-us/articles/360058972091-Push-Notification-Test is not actually testing push notifications. It is testing just the Notification API, which works, not the Push API and Service Worker API that are used to subscribe to actual push notifications.

Note: By enabling “Use Google services for push messaging” in the privacy and security settings subscribing to push messages starts to work. This option is not on by default, so the default behavior of the browser is broken.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.