Where do notifications show on Chrome on Android?
I think this is a duplicate with the following question HTML5 Notification not working in Mobile Chrome.When I debug it on my Android device, I get the following error:
Failed to construct 'Notification': Illegal constructor. Use ServiceWorkerRegistration.showNotification()
It should use servicework to show notification:
navigator.serviceWorker.register("some-empty.js"); Notification.requestPermission(function (result) { if (result === 'granted') { navigator.serviceWorker.ready.then(function (registration) { registration.showNotification('Notification with ServiceWorker'); }); } });
Android does not receive chrome notifications, it is different from desktop chrome