Skip to content

Conversation

@nickvergessen
Copy link
Member

I don't know when this started, but it seems browsers nowerdays only allow to request notification permissions in active tasks shortly after human interaction (Firefox wording below):

The Notification permission may only be requested from inside a short running user-generated event handler.

To test click on the icon next to the URL input of your browser and remove the notification permission manually.

So to make this work again, we show a red dot when no permission decision was made yet.
Then when you click on the button, we show a message Requesting browser permissions to show notifications while doing that. Afterwards everything will just work fine again.

I think we should backport this at least to all versions as long as the patch applies.

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the trick!

@rullzer rullzer force-pushed the bugfix/noid/web-notifications branch from 870222d to ac2cf6f Compare March 3, 2020 19:52
@rullzer
Copy link
Member

rullzer commented Mar 4, 2020

/compile amend /

Signed-off-by: Joas Schilling <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
@npmbuildbot-nextcloud npmbuildbot-nextcloud bot force-pushed the bugfix/noid/web-notifications branch from ac2cf6f to 05be546 Compare March 4, 2020 08:55
@nickvergessen nickvergessen merged commit d06293a into master Mar 4, 2020
@nickvergessen nickvergessen deleted the bugfix/noid/web-notifications branch March 4, 2020 09:32
@nickvergessen
Copy link
Member Author

/backport to stable18

@backportbot-nextcloud
Copy link

The backport to stable18 failed. Please do this backport manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants