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

Explicitly ask user for notification authorisation on launch (macOS) #4556

Merged
merged 1 commit into from
May 19, 2022

Conversation

claucambra
Copy link
Collaborator

Rather than simply delivering notifications silently, this PR makes the desktop client ask for explicit permission from the user on launch if access has not been granted/denied:

Screenshot 2022-05-17 at 19 20 27

@claucambra claucambra self-assigned this May 17, 2022
src/gui/systray.h Outdated Show resolved Hide resolved
@claucambra claucambra requested a review from mgallien May 18, 2022 12:54
@claucambra
Copy link
Collaborator Author

/backport to stable-3.5

@claucambra
Copy link
Collaborator Author

/backport to stable-3.4

@mgallien
Copy link
Collaborator

@claucambra please do not forget to clean history and make DCO check happy

@claucambra claucambra force-pushed the bugfix/macos-notifications-permission branch from 4d41b86 to 380d4ca Compare May 18, 2022 14:38
src/gui/systray.cpp Outdated Show resolved Hide resolved
@allexzander
Copy link
Contributor

@claucambra Approved, but see my comment

@claucambra claucambra force-pushed the bugfix/macos-notifications-permission branch from 380d4ca to 6d0f095 Compare May 18, 2022 15:23
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
@claucambra claucambra force-pushed the bugfix/macos-notifications-permission branch from 6d0f095 to a2cc2ac Compare May 19, 2022 08:59
@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-4556-a2cc2ace4a3f7f71e43eaa35dbd4b0071be778a5-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@sonarcloud
Copy link

sonarcloud bot commented May 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@claucambra claucambra merged commit bc51d30 into master May 19, 2022
@claucambra claucambra deleted the bugfix/macos-notifications-permission branch May 19, 2022 09:40
@backportbot-nextcloud
Copy link

The backport to stable-3.4 failed. Please do this backport manually.

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

Successfully merging this pull request may close these issues.

4 participants