firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

Request to allow setting userVisibleOnly property in Microsoft Edge browser

Open ArulappanS opened this issue 1 year ago • 0 comments

Operating System

macOS Sonoma 14.5

Browser Version

Microsoft Edge 125.0.2535.51

Firebase SDK Version

10.8.0

Firebase SDK Product:

Messaging

Describe your project's tooling

Microsoft Edge browser extension wtih React Redux Webpack Jest

Describe the problem

This is a follow-up of the issue https://github.com/firebase/firebase-js-sdk/issues/8042 for Edge browser.

When we try to set the value of the property userVisibleOnly to false, “NotAllowedError: Registration failed - permission denied” error is thrown.

Till fcm-js-sdk provides an interface to set userVisibleOnly property, can we please allow setting the property in Microsoft Edge browser as well?

Steps and code to reproduce issue

Change userVisibleOnly property value to false in the package @firebase/messaging -

return swRegistration.pushManager.subscribe({ userVisibleOnly: false, // Chrome <= 75 doesn't support base64-encoded VAPID key. For backward compatibility, VAPID key // submitted to pushManager#subscribe must be of type Uint8Array. applicationServerKey: base64ToArray(vapidKey) });

Build and load the extension in Microsoft Edge browser (from version 121). We can see the error in the console: fcm-js-sdk-issue

ArulappanS avatar Jun 11 '24 16:06 ArulappanS