javascript - Chrome web notifications without SSL (bypassing Service Worker) - Stack Overflow

So, is it possible to implement web notifications for Chrome without SSL certificate? I want to avoid

So, is it possible to implement web notifications for Chrome without SSL certificate? I want to avoid installing SSL on my site and it would be cool if there was a way to send notifications without Service Worker.

So, is it possible to implement web notifications for Chrome without SSL certificate? I want to avoid installing SSL on my site and it would be cool if there was a way to send notifications without Service Worker.

Share Improve this question asked Sep 1, 2015 at 8:01 Vladimir JVladimir J 811 silver badge6 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

You can still use the (old) Notification(title, options) constructor and it’ll work on some (desktop) platforms. But (as I guess you know), it doesn’t work in Chrome for Mobile (Android).

What does work on Chrome for Mobile is the ServiceWorker-based showNotification(title, options) approach. But per the Service Workers spec, you can only use Service Workers in secure contexts (in order to protect users from the risks associated with insecure contexts).

So if you want something that will work for Chrome for Mobile users, then the answer is, No, it’s not possible to use Web Notifications in Chrome for Mobile without Service Workers (and so also, without deploying an SSL certificate for your site).

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744889141a4599297.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信