Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Budget with Permission #263

Closed
Jxck opened this issue Jun 20, 2017 · 4 comments
Closed

Question: Budget with Permission #263

Jxck opened this issue Jun 20, 2017 · 4 comments

Comments

@Jxck
Copy link

Jxck commented Jun 20, 2017

Web Pus Notification asks user to Allow/Deny of Permission with popup.
If Denied, Service can't send Notification.

in this case, will silent-push (without notification) success if budget for silent push are available ?

(in other word, Permission for Push Notification will only block a Notification ? or also effects to silent-push even if budget are available ?)

@martinthomson
Copy link
Member

It's important to understand the distinction between what the specifications say and what implementations do here.

The specs require that you have permission for push. That is logically separate from permission for notifications. The permissions API recognizes these as separate permissions.

That said, implementations all (?) grant and deny permission for push and notifications together. That is, requesting permissions for one grants or denies both at the same time.

That means that if a user rejects a notification permission, then a push subscription cannot be created either. Whether the site then has budget becomes immaterial, it can't generate notifications or pushes.

@Jxck
Copy link
Author

Jxck commented Jun 20, 2017

my understand is, Permission for Push and Notification are separated in spec, but, for example Chrome UI for Permission are Merged for Both.

in that case, I have more Question

  1. install 'silent-push' will ask user a permission for Push ? or 'silent-push' will only controlled by budget ?
  2. if Yes for 1, and if denied, Notification will blocks too ? (in chrome)

@martinthomson
Copy link
Member

That's a question for implementations. My understanding is that because notification and push permissions are linked, subscribing for a silent push will show the notifications permissions dialog. If that request is blocked, notifications will be blocked.

@Jxck
Copy link
Author

Jxck commented Jun 20, 2017

OK, It seems better to separate Push / Notification for Permission in UI Implementation, but I'll ask more about it at implementation threads.
Thanks so much !

@Jxck Jxck closed this as completed Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants