Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Is link option really working ? #102

@jy95

Description

@jy95

Hello,

I was testing some options of Push.js when I found a bug : the link option doesn't seem to work.
Can someone explain me why ?

I have something like this :

Push.create("Nouvel appel", {
            body: "un appel",
            requireInteraction: true,
            link: "/adminPanel?callId=2",
            icon: "/img/newCall.png",
            serviceWorker: "/bower_components/push.js/serviceWorker.js"
        });

I also discover for some reason the service worker is not listed in Application - Service Worker Tab from Chrome.

To check if it wasn't the path, I have done with the "old" way to register sw and it directly is shown on the tab:

navigator.serviceWorker.register('/bower_components/push.js/serviceWorker.js')

So what is wrong ?

My config :

Chrome 58.0.3029.81
Windows 10
Tested on your demo site

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions