Closed Bug 1464158 Opened 6 years ago Closed 6 years ago

Web push notification's actions is ignored

Categories

(Core :: DOM: Push Subscriptions, defect)

60 Branch
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1225110

People

(Reporter: yucikkravets, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36

Steps to reproduce:

Sending the following object as web-push notification:
"notification": {
            "title": "title1",
            "body": 'Test notification from me.',
            "actions": [
                {
                    "action": "open_specific_url",
                    "title": "Open Specific Url"
                }
            ],
            "requireInteraction": true
        }
and then inspecting the event that comes to service-worker code in the browser.


Actual results:

Notification object's actions were missing. requireInteraction flag was ignored.


Expected results:

Actions array should have been passed to service worker code. Notification should be visible until user interacts with it (either by selecting close or clicking on one of the buttons created based on the actions array objects) as per spec.
Hi there, thanks for the report! Unfortunately, our `requireInteraction` support is incomplete (bug 1346375 and bug 1417846), and action buttons aren't implemented yet (bug 1225110). I don't have an ETA for when they'll be available in Firefox, as we aren't actively working on notifications right now.
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.