Open Bug 1807379 Opened 3 years ago Updated 1 year ago

Web notifications are not displayed

Categories

(Firefox for Android :: Push, defect)

All
Android
defect

Tracking

()

People

(Reporter: cpeterson, Unassigned)

References

Details

From github: https://github.com/mozilla-mobile/fenix/issues/19152.

There's a post on SO, where it all started
https://stackoverflow.com/questions/66918514/pushmanager-subscription-fails-on-firefox-for-android/66946482?noredirect=1#comment118754360_66946482

Issue is reproduced on FF mobile 88.1.1

Test Case:
Mobile FireFox (88.0, buildID 20210415),
Desktop Firefox connected (87.0, buildID 20210318)

https://web-push-book.gauntface.com/

Step 1:
Allow Service Worker registration

Step 2:
Send Push Message

Step 3:
Confirm Delivery

This is how SW is requesting permission

 async function registerSW() {
  await navigator.serviceWorker.register('/demos/notification-examples/service-worker.js');
}

function getSW() {
  return navigator.serviceWorker.getRegistration('/demos/notification-examples/service-worker.js');
}

Whenever I try to display push on Android - I get nothing

registration.showNotification("HEllo"
 );
Promise { "fulfilled" }
​
<state>: "fulfilled"
​
<value>: undefined

Please validate information and doublecheck if browser notifications may be displayed on FF Mobile.

┆Issue is synchronized with this Jira Story

Change performed by the Move to Bugzilla add-on.

The severity field is not set for this bug.
:cpeterson, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(cpeterson)
Flags: needinfo?(cpeterson)
Severity: -- → S3
See Also: → 1807382
You need to log in before you can comment on or make changes to this bug.