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

Improve notifications setup #15

Open
kristopherjohnson opened this issue Mar 25, 2021 · 3 comments
Open

Improve notifications setup #15

kristopherjohnson opened this issue Mar 25, 2021 · 3 comments

Comments

@kristopherjohnson
Copy link
Owner

kristopherjohnson commented Mar 25, 2021

Enabling notifications for Menubar Countdown on Big Sur can be confusing. See https://twitter.com/jleedev/status/1375080727021293568

Not much we can do to change Apple's permissions requirements and UI, but maybe there is a better way to help the user through initial setup.

@jleedev
Copy link

jleedev commented Mar 25, 2021

Copying images here:

This does not look like it, but it is in fact asking the user for permission:

Screen Shot 2021-03-25 at 9 34 11 AM

The user must hover over the banner, then choose Options > Allow:

Screen Shot 2021-03-25 at 9 34 07 AM

Screen Shot 2021-03-25 at 9 34 22 AM

If the user doesn't do this, they must open system preferences and dig through the list of apps in notifications to turn them on.

Knowing nothing about the API or how other apps do this, I have two ideas:

  1. When enabling notifications, try to educate the user about what's going to happen.
  2. If notifications are denied (and it's possible to interrogate the system about this), offer to open the notifications preference pane.

@kristopherjohnson
Copy link
Owner Author

Yeah, Apple's API is pretty awful. There may be a way I can customize the text displayed in the permissions request dialog, but there is no way to avoid it entirely or replace it with something in the app.

I think I could check the state of permissions and do something appropriate if the user tries to Start with request for notification but notifications are disabled.

@kristopherjohnson
Copy link
Owner Author

kristopherjohnson commented Mar 25, 2021

There is apparently no way to change the text, and workarounds like popping up your own alert first telling the user what to do can get your app rejected: https://stackoverflow.com/questions/41353736/is-it-possible-to-have-a-custom-dialog-message-when-asking-for-notification-perm (that question is about iOS, but macOS is substantially the same).

So, maybe I need to change the Menubar Countdown "Start" dialog so that it will show the current permission status, and provide a button that opens System Preferences to help the user find the settings?

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