Calendar
Calendar copied to clipboard
Fix no notification permission issue
What is it?
- [x] Bugfix
- [ ] Feature
- [x] Codebase improvement
Description of the changes in your PR
- Fix issue when user could not add an event/task when notification permission was not granted.
- Refactored some logic, extracting reused code into a reusable function.
Before/After Screenshots/Screen Record
- Before:
- After:
Fixes the following issue(s)
- Fixes #220
Acknowledgement
- [x] I read the contribution guidelines.
It should ask for the permission at least on the first app startup. Most people won't think about turning manually the permission. Remember that this app isn't done only for technically advanced users.
@Aga-C Good idea. I added a check in the latest commit.
No, the app shouldn't ask for notification permission right at the startup, previous behavior was the correct behavior. To properly solve the issue of removing reminders without permission, we can try either of these options:
- Add a cross button at the end of reminders fields that users can press to delete a given reminder.
- Make the permission check more intelligent by asking for permission after the user selects anything other than the "No reminder" option. I like this option more.
This pull request has been automatically closed due to inactivity. We requested additional information but have not received a response from the original author. Without the requested details, we cannot proceed. If you have the needed information or updates, please reopen the PR or comment so we can continue the review.