-
@madridserginho Not all contexts support push notifications, for example an Android WebView doesn’t support it. To be on the safe side, you need to check if the
pushManager
exists on theServiceWorkerRegistration
and ifPushManager
exists onwindow
: developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager.