Skip to content

Request to allow setting userVisibleOnly property in Microsoft Edge browser #8310

Open
@ArulappanS

Description

@ArulappanS

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 #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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions