Notification API in Android Chrome browser

Denys Séguret picture Denys Séguret · Jan 26, 2014 · Viewed 8k times · Source

My web application uses the Notification API.

I thought KitKat's Chrome browser was supposed to have it, or at least the old webkitNotifications. But both window.Notification and window.webkitNotifications are undefined in my tests in Chrome in Android 4.4.

Is there a way to push notifications from the browser to the user when the browser isn't visible in Android 4.4 ? Or do I still have to embed my web app in an Android application to achieve this ? Of course I'm open to other solutions than the HTML5 Notification API, as long as they're practical for my users (no flash). Or to a reliable webkit based alternative to Chrome and having a notification API.

Answer

Serge K. picture Serge K. · Jan 26, 2014

Unfortunately it seems that Chrome on Android isn't compatible with HTML5 Notification API according to this. BTW I tried this demo on chrome on my Nexus 7 with stock kit Kat on it and the demo say's my browser isn't compatible :/