在Android版Chrome浏览器的Notification API [英] Notification API in Android Chrome browser
问题描述
我的Web应用程序使用通知API 。
My web application uses the Notification API.
我想奇巧的Chrome浏览器应该拥有它,或者至少是旧 webkitNotifications
。但两者 window.Notification
和 window.webkitNotifications
是未定义
我在Chrome中测试Android 4.4系统。
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.
有没有办法从浏览器向用户推送通知时,浏览器在Android 4.4系统是不可见的?或者,我还是要嵌入我的web应用程序在Android应用程序来实现这一目标?当然,我开到比HTML5 API通知其他解决方案,只要他们是为我的用户(不闪光)实用。或向可靠的基于WebKit的替代Chrome浏览器并具有通知API。
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.
推荐答案
不幸的是,似乎Android版Chrome不与HTML5兼容
根据这通知API。顺便说一句我试过这个演示
对我的Nexus 7镶边股票奇巧它并演示说的我的浏览器不兼容:/
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 :/
这篇关于在Android版Chrome浏览器的Notification API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!