Fenix: [Bug] Can't enable push notifications

Created on 3 Nov 2020  ·  5Comments  ·  Source: mozilla-mobile/fenix

Steps to reproduce

  1. Navigate to the Microsoft web push demo (or any other site that implements web push),
  2. Click the "Initiate push" button (or equivalent),
  3. Select "Always" in the resulting popup (if first time).

Expected behavior

Receive an Android notification from the site.

Actual behavior

No notification arrives.

Debugging shows the PushManager.subscribe() promise resolves to DOMException: User denied permission to use the Push API., even though the user selected "Always" allow in the popup, and clicking the padlock in the address bar shows notifications are "Allowed".

Device information

  • Android device: Oneplus 5T, Android 10, OxygenOS 10.0.0
  • Fenix version: 84.0a1, buildID 20201029

The issue is not present in versions 82 (current) or 83 (beta).

Push 🐞 bug

Most helpful comment

Closing as resolved. I don't think we need QA to verify this since the OP has done that for us.

All 5 comments

cc: @Amejia481 looks like someone else already filed this. 🙂

I'll look into it since it seems specific to push.

For the issue: @Amejia481 has fixed the root cause of this bug that is in the latest AC update. Unfortunately, Fenix is a few versions behind at the moment. Will update when this is in.

@braedon this should be fixed now in Nightly if you could re-test this for us as well.

@jonalmeida Seems to be working on Nightly again, thanks!

Closing as resolved. I don't think we need QA to verify this since the OP has done that for us.

Was this page helpful?
0 / 5 - 0 ratings