Skip to content

JS 9.0.2 - Notification Twice using onBackgroundMessage #5516

Closed
@SylvainAssemat

Description

@SylvainAssemat

Hi

I'm in trouble testing the push event using the JS 9.0.2 (module) => via onBackgroundMessage in a service worker
I m aware that i dont have to send a notification in the payload so i just send data (via postman) :

{
   "to": "/topics/public",
    "data": {
        "body": "Notification in Body",
        "title": "Notification in Title",
        "url": "http://www.google.fr"
    }
}

When i customize my notification using self.registration.showNotification, i have 2 notification displaying.

This one : (This site has been updated in the background) should not appear
And my custom notification.

I have checked that the payload dont have any "notification" stuff.

I should miss something or maybe a bug ?

Thanks for any help

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions