Skip to content

Phone notifications broken - Illegal constructor. Use ServiceWorkerRegistration.showNotification() instead. #10

Description

@SpaceMonkeyForever
ERROR TypeError: Failed to construct 'Notification': Illegal constructor. Use ServiceWorkerRegistration.showNotification()

This happens on mobile. Chrome on Android to be specific.

Explanation here:
https://stackoverflow.com/a/29915743/331021

I think the library is great for Angular projects, it was very easy to use and it's a shame it doesn't work on phone.

I would fix this myself, but I'm not very good with JavaScript and this seems to require some additional logic:
https://developers.google.com/web/fundamentals/primers/service-workers/registration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions