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

Reminders for "at-most" habits never show up #2044

Open
2 tasks done
Yyuzu opened this issue Sep 6, 2024 · 6 comments
Open
2 tasks done

Reminders for "at-most" habits never show up #2044

Yyuzu opened this issue Sep 6, 2024 · 6 comments

Comments

@Yyuzu
Copy link

Yyuzu commented Sep 6, 2024

Pre-submission checklist

  • I am submitting a bug report, not a feature request.
  • I have searched for similar issues, but did not find any matches.

Description

Habits set up as at-most X times per period's reminders never show up.

Steps to reproduce

  1. Add a new habit
  2. Set it up as no more than 4 times per week
  3. Set up a reminder every day at 22:00
  4. Reminders never show up

System information

  • Phone: Google Pixel 6
  • Phone Operating System: GrapheneOS
  • App version: 2.2.0 (F-Droid)

Screenshots

nothing relevant

Thank you!

@Yyuzu Yyuzu changed the title Reminders for "at-most" habits not showing up Reminders for "at-most" habits never show up Sep 6, 2024
@PickledChris
Copy link

PickledChris commented Sep 23, 2024

I have this issue as well.
Google Pixel 7,
App version v2.2.1

Target: 5 every day
Target type: at most
Reminder 8:10 any day of the week.

I never get the notification, all of my other 5 notifications of different types work fine.

@BSiddharth
Copy link

Facing the same issue. On checking the logs, I observed that this is being logged. My guess is somehow this function is sending completed signal for "at most" habits and thus the reminder is being suppressed for those habits. I would have confirmed this theory but after installing android studio, Java and trying to sync gradle for the 100th time I realised I would better prefer to be stabbed in the eyes than dealing with the mess called android development. Also this might be related to our issue #1744.

@BitesizedLion
Copy link

BitesizedLion commented Oct 22, 2024

I can also confirm that this issue occurs for me as well. :(

Env:
Google Pixel 7 (Android 14)
Version 2.2.1 via Play Store

@ShaqibK
Copy link

ShaqibK commented Nov 28, 2024

Can confirm this issue is occouring.
Yes/no habit notifications works everytime, but for measurable habits, there is no notification.

Device:
Mi 11 lite NE 5g
OS: Android 14
App version:2.2.7

@kalina559
Copy link
Collaborator

kalina559 commented Dec 16, 2024

Hey, I had some trouble reproducing this, but in the end I noticed that the problem only appears on my device when the at-most habit already had some input. If the value is 0, the reminder appears as expected.
So this would line up with @BSiddharth suggestion that the habit is treated as 'completed'.

Device:
Motorola Moto G73
OS: Android 14
App version: 2.2.0

@kalina559
Copy link
Collaborator

This issue can be solved in at least 2 ways:

  1. Making an exception for AT_MOST habits in ShowNotificationTask.onPostExecute(), where we currently skip habits that are marked as completed. PR: Ignoring isCompleted for AT_MOST habits #2078
  2. Never treating AT_MOST habits as completed for today. This would also solve "Hide completed" should not hide "At most"-type measured habits #1744. PR: Never mark AT_MOST habits as completed for today #2077

Personally I think that second option is better - AT_MOST habit is not really completed until the day/week/month is over, because otherwise you can still break the limit you set in a habit. @iSoron , @hiqua - what do you think?

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

6 participants