Skip to content

Fire pushsubscriptionchange when user revokes permission #116

Closed
@johnmellor

Description

@johnmellor

The spec says, "When a permission is revoked, all push subscriptions created with that permission must be deactivated" (i.e. automatically unsubscribed).

We should clarify in the pushsubscriptionchange section that the pushsubscriptionchange event must be fired in such cases.

This is different from #61 since the webapp's state (cookies, IDB, etc) haven't been reset, and so if we didn't fire pushsubscriptionchange, this would create a new state that sites have to explicitly handle.

(unlike other pushsubscriptionchange events, it won't be possible to resubscribe automatically - but that's fine, because sites already have to handle failure to resubscribe, e.g. in case the device is offline).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions