HabitRPG / habitica-ios

Native iOS app for Habitica
GNU General Public License v3.0
703 stars 235 forks source link

can't get daily reminder notifications ios 16.7.2 habitica 3.11.1 (992) references #1062 #1340

Open violet4 opened 2 months ago

violet4 commented 2 months ago

Describe the bug Can't get a daily Habitica notification on iOS despite all settings suggesting that I should be able to.

To Reproduce

  1. iOS settings > notifications (stack) > habitica > allow notifications on, immediate delivery, alerts enabled (lock screen, notification center, banners), banner style temporary, sounds on, badges on, show previews when unlocked, notification grouping automatic.
  2. Device mute (physical hardware button) un-muted.
  3. Habitica > hamburger menu > top-right gear settings button > daily reminder (ON), every day at (any time, but for testing purposes, i set it for 2 minutes in the future from the time i'm looking at the setting so i can try to test triggering it). for good measure: toggle the daily reminder off and back on; force close the app; re-open the app; toggle the daily reminder off and back on again. Notification badge is also turned on.

All my settings to disable any types of notifications (disable all push notifications, push notifications, disable all emails, emails, disable private messages) are all set to ALLOW all notifications. I haven't received a notification in a while because I haven't been using the app recently and my friends haven't invited me to any quests recently, but I was receiving notifications (i believe push notifications, possibly in addition to emails) the last time they were doing quests.

Additional Habitica preferences: Language: english, launch view: screen habits, theme mode: follow system setting, app icon: purple (default).

I have never seen a Habitica notification badge (number on the top right of the app icon on the iOS springboard). I have never received a daily reminder notification.

As an additional step, I have just cleared the cache and reloaded all content, and repeated all the previous steps, and still no notification.

Expected behavior With all of these settings meticulously set correctly, I expect to receive a notification at the time I set.

Screenshots I'm happy to add screenshots if it helps.

Smartphone (please complete the following information):

Additional context I see another ticket about this issue #1062, but it was closed without resolution on Feb 18, 2022, and even had reports come in after it was closed. I don't know exactly when I started using the app, but it has been for at least a year. I have never received this notification, which prevents me from using Habitica with any regularity because my lifestyle doesn't allow for a consistent regimen right now. I'm pretty aloof when it comes to phone usage and need it to actively remind me to do things.

It seems like Habitica should have a "test notifications" button that immediately sends a notification through the system to ensure the operating system notification settings are set properly to allow them and to ensure that Habitica is hooking into the correct system calls. I believe Slack has this feature. This could provide additional insights: we don't know if the issue is a complete failure to hook into the system notifications, or if the issue is with the notification scheduling feature. This would help rule out the former.

I have software engineering experience and an old macbook (how time flies) and could probably get xcode installed on my old macbook, but I have no experience with developing on iOS. I'm not especially motivated to try to work on this on my own, but maybe if there's a set of instructions somewhere to make it easy to get the app compiled and running so I could test it, I might have a look, if someone is willing to give me a little guidance.

I still use an iPhone from late 2018 but otherwise I've moved fully linux (gentoo) and open-source. I don't envy developing for iOS, but my device is chugging along without any problem so far >5 years later. Murena Fairphone 4 looks like a solid choice, which is Android-like and should be able to support Habitica just fine; someday.

My partner just tested out all the above on her Android phone (it's an older device but still works-ish), and was also not able to get the daily Habitica notification to pop up.

saraolson commented 1 month ago

have you still not received any reminder notifications? have you tried setting a reminder on a specific daily or todo to see if you can get those? any screenshots you'd want to include of your settings never hurt, esp if we have trouble reproducing.

a reminder won't trigger the app badge, it should just send a generic 'remember to check off your tasks' notification to your notif center in the case of the one scheduled from settings. on ones scheduled on tasks, they will send a notification containing the task info.

i've been getting my daily reminder at 7pm every day reliably, so unfort unable to reproduce.

1062 is specifically about task reminders that are set on each specific task, not the daily reminder set in settings. they're two separate features that work slightly differently even though they seem similar.

violet4 commented 1 month ago

@saraolson ahhh a reminder set directly on a daily worked!!! :D i'm happy with that solution as i've just created a "check dailies" task with a morning reminder. i wouldn't say this issue overall is fixed, but i'm 100% satisfied with this workaround and wouldn't mind closing this ticket.

if anyone wants to give me specific pointers (a troubleshooting guide, a build wiki page, mentions of specific screenshots that would help or even just "screenshots of everything you mentioned in the ticket description") on what to do to give enough information to diagnose the issue, i'm happy to follow some instructions, but otherwise i'll leave this issue alone for the moment.

i might have motivation to do more digging on my own without prodding if my device were linux-based, but with anything non-linux i have less interest in digging into the internals without a little more handholding.