Skip to content
This repository has been archived by the owner on Jan 20, 2020. It is now read-only.

Exception found when create notification, Chrome 44.0.2403.133 on Android 4.4.2 #27

Open
leosuncin opened this issue Aug 21, 2015 · 2 comments

Comments

@leosuncin
Copy link

Request notification permission works fine, but when try to show notification not work.
Error stack:

TypeError: Failed to construct 'Notification': Illegal constructor. Use ServiceWorkerRegistration.showNotification() instead.
    at TypeError (native)
    at getNotification (http://localhost/vendor/html5-notifications/desktop-notify.js:72:29)
    at Object.createNotification (http://localhost/vendor/html5-notifications/desktop-notify.js:178:28)

Works fine in Firefox 40.0 in the same Android OS

@EpokK
Copy link

EpokK commented Jun 15, 2016

+1

@ttsvetko
Copy link
Owner

Current polyfill does not support notifications within ServiceWorkers, yet. Will implement that soon.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants