Re: static permission functions on Notification (was Feedback from Safari on Web Notifications)

On Mar 13, 2012, at 9:30 AM, John Gregg wrote:

> Either way we go we are setting the example of how we think it should be done, so we should settle the API discussion rather than just choosing the shortest path to implementation.

On this point, did anyone have any thoughts about the API proposal? Briefly:

1) permissionLevel() returns a string describing the permission.
2) Three values: granted/denied/default. "default" means to deny, but the user never made a decision.
3) Request permission callback includes the string value as a parameter.

Jon

Received on Wednesday, 14 March 2012 06:17:19 UTC