Last Updated: February 25, 2016
· gerbenjacobs

Webkit Notifications pitfalls

Want to test out the HTML5 Notifications in Webkit browsers? Don't fall for these 2 issues:

  1. webkitNotifications.requestPermission() needs to be initiated by a user action (i.e. button click)
  2. It won't work in just a HTML file. You need some kind of server entitiy (i.e. wamp/xampp/mamp)