Closed Bug 1674069 Opened 4 years ago Closed 2 years ago

browser.notifications.onClicked is not triggered on Android

Categories

(GeckoView :: Extensions, defect, P2)

Firefox 84
Unspecified
Android

Tracking

(firefox101 verified, firefox102 verified, firefox103 verified)

RESOLVED FIXED
Tracking Status
firefox101 --- verified
firefox102 --- verified
firefox103 --- verified

People

(Reporter: bugzilla, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 Edg/85.0.564.70

Steps to reproduce:

I have created an extension for Firefox on Desktop and try now to migrate and test it on Android in Firefox Nightly. One of the functions is it, that you can click on a notification created with browser.notifications.create() and a new tab should be opened. For this, i use browser.notifications.onClicked.addListener().

Actual results:

After that https://github.com/mozilla-mobile/fenix/issues/14993 is solved, i have found that using:

browser.notifications.onClicked.addListener(function(notificationId) {
console.log('Notification ' + notificationId + ' was clicked by the user');
});

is not triggered, when i click the notification on Android. The same works on Desktop without any issue.

Expected results:

In this case, the text should appear in the webconsole, but nothing is shown. No error message and also not the expected text.

OS: All → Android
Severity: -- → S3
Priority: -- → P2

It seems to be the same issue. I have subscribed now to both records. If i see, that something has solved, i will report also here.

Status: UNCONFIRMED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.