-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Fix no notification permission issue #221
Fix no notification permission issue #221
Conversation
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. |
val hasPermission = ContextCompat.checkSelfPermission(context, Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED | ||
if (hasPermission) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be replaced with the extension function used in all Fossify apps:
hasPermission(PERMISSION_POST_NOTIFICATIONS)
|
||
val defaultReminders: Triple<Int, Int, Int> | ||
get() { | ||
val hasPermission = ContextCompat.checkSelfPermission(context, Manifest.permission.POST_NOTIFICATIONS) == PackageManager.PERMISSION_GRANTED |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be replaced with the extension function used in all Fossify apps:
hasPermission(PERMISSION_POST_NOTIFICATIONS)
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:
|
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. |
What is it?
Description of the changes in your PR
Before/After Screenshots/Screen Record
Fixes the following issue(s)
Acknowledgement