browser.notifications.onClicked is not triggered on Android
Categories
(GeckoView :: Extensions, defect, P2)
Tracking
(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.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
I think this the same AC bug here: https://github.com/mozilla-mobile/android-components/issues/7477
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.
Comment 3•2 years ago
|
||
Seems to have been fixed, see https://github.com/mozilla-mobile/android-components/issues/7477
Updated•2 years ago
|
Description
•