this post was submitted on 22 Sep 2024
14 points (100.0% liked)

Thunder App

2853 readers
1 users here now

An open-source, cross-platform Lemmy client for iOS and Android.

This community is intended to discuss features and feature suggestions for Thunder; as well as friendly, respectful talks about Lemmy in general.

Please use the GitHub repository linked below to submit bug reports, so keeping track of them is easier, and make sure to search first if you already can find an issue for your report.

If there are any developers who would like to contribute, feel free to reach out on GitHub!

General Links
Website: Link
GitHub Repository: Link
Matrix Space: Link

Android Releases
IzzyOnDroid: Link
Google Play: Link

iOS Releases
Apple App Store: Link
TestFlight Beta: Link

Related Communities
Nightly Community: Link

founded 2 years ago
MODERATORS
 

I haven't received a notification from Thunder in a few weeks. I double-checked the settings to make sure "Enable Inbox Notifications" is enabled, and it is.

Anyone else have issues with notifications recently?

top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 3 weeks ago (1 children)

Aside from everyone else's suggestion to disable battery optimizations, which is a likely culprit, I would also suggest logging out of your account(s) and back in. Sometimes if there is stale info, the notifications will fail silently in the background.

[–] [email protected] 2 points 3 weeks ago* (last edited 3 weeks ago) (1 children)

Thanks, I'll keep this in mind if I encounter the problem again.

Disabling battery optimizations didn't seem to fix the issue.

What eventually seems to have fixed the problem was accidentally clearing my inbox, which had over 100+ items in it. It seems like there might be some limit somewhere which prevents further notifications if there are more than X items in the inbox.

[–] [email protected] 2 points 3 weeks ago* (last edited 3 weeks ago)

Oh good catch! You're absolutely right, we only look up the first 50 unread messages when we generate notifications.

https://github.com/thunder-app/thunder/blob/f02fbfa0f80c26c59d4e7a88fced8059807e6df7/lib/notification/utils/local_notifications.dart#L75

We would have to implement some paging here to retrieve all unread messages.


Tagging @[email protected] as you might be interested in this!

[–] [email protected] 2 points 3 months ago (1 children)

Yes, but only on one phone. The other is still working great.

[–] [email protected] 1 points 3 months ago

Huh, that's interesting. Any significant differences between them, i.e. operating system, or such?

[–] Agent641 2 points 3 months ago

For me, notifications seem completely random. Sometimes it says none, and there is one. Sometimes it says there is one, and there are none. Sometimes it says three, and there is 2. I just got used to it.

[–] [email protected] 1 points 3 months ago (1 children)

Go into the thunder settings and disable notifications and then turn them back on again. I've found this often helps. I know it breaks, especially if you have multiple accounts. When you switch between them, notifications will break until you do that

[–] [email protected] 1 points 3 months ago (1 children)

Go into the thunder settings and disable notifications and then turn them back on again.

Thanks for the suggestion. I tried it and it doesn't seem to have helped. I'm also only using a single account on Thunder.

[–] [email protected] 1 points 3 months ago (1 children)

Do keep in mind that it does only check every, I want to say 15 minutes. And just to make sure it was the thunder settings you went into right, settings and then general and then inbox notifications?

[–] [email protected] 1 points 3 months ago (1 children)

it does only check every, I want to say 15 minutes

Good to keep in mind, but that wouldn't explain why I haven't received any notifications in the past few weeks.

just to make sure it was the thunder settings you went into right, settings and then general and then inbox notifications?

Yup, tapped the gear -> General -> Scroll down to Notifications -> Enable Inbox Notifications.

I tried sending the test notifications, and they worked fine. No other notifications though.

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

Okay, I assume you turned it off and then turned it back on. So, my next thought would be maybe it is your system's battery management that is somehow killing it. In which case, open thunder, then open the app's witcher and then tap the thunder icon. Then tap app info and in the system settings there should be something for battery management. It will say that it is optimized for battery usage and you want to make it not optimized.

[–] [email protected] 1 points 2 months ago (1 children)

I assume you turned it off and then turned it back on.

Yup, done.

then open the app's witcher and then tap the thunder

There was a huge noise and I turned into a newt, but I got better.

in the system settings there should be something for battery management. It will say that it is optimized for battery usage and you want to make it not optimized.

Found it:

It was set to "optimized", so I've switched it to "unrestricted". It's been about a day, and I am yet to receive a single Thunder notification.

[–] [email protected] 2 points 2 months ago (1 children)

Okay, that's weird. I honestly have no idea what's causing that then. I'm sorry I couldn't help more.

[–] [email protected] 1 points 2 months ago (1 children)

No worries, thanks for all your suggestions! Hopefully this info might help @[email protected] at some point in the future...

[–] darklightxi 1 points 2 months ago (1 children)

Hey! Thanks for reporting this and sorry for the delay in response.

Unfortunately, its quite difficult to implement local-only notifications because of how restricitve Android is with regards to background tasks. The notifications feature is heavily dependent on the specific OS version that you have (different manufacturers do different things to help with power saving, but as a result, breaks/restricts background tasks from running)

The only thing I can suggest is to turn off battery optimizations for Thunder. After that, disable and re-enable notifications in the settings. If you go to Settings -> Debug, you should also see an option to test out notifications to see if Thunder can trigger them.

If none of that works, please let me know (ideally on Matrix) and I can help troubleshoot further!

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago)

Update:

I had over 100+ items in my inbox. I accidentally cleared my inbox. I started receiving Thunder notifications again.

I'm not sure if these are related, but it seems like a strange coincidence if they aren't. Could there be some limit somewhere which prevents further notifications if there are more than X items in the inbox?