Benjamin-Loison / thunderbird-android

K-9 Mail – Open Source Email App for Android
https://k9mail.app/
Apache License 2.0
0 stars 0 forks source link

Be notified of received emails in realtime even if not on app and lock screen #20

Open Benjamin-Loison opened 2 hours ago

Benjamin-Loison commented 2 hours ago

Checklist

App version

Not read.

Problem you are trying to solve

I am fine with more power consumption, at least temporarily when I need it.

I enabled K-9 notifications as they were disabled for an unknown reason.

To some extent this may help reduce my laptop power consumption/noise, when only my phone can be charged with a portable battery or I need to not make noise like at night.

Suggested solution

Not read.

Screenshots / Drawings / Technical details

No response

Benjamin-Loison commented 2 hours ago

I would like at least to be aware of the timing upper bound for notifications.

Benjamin-Loison commented 2 hours ago

image

image

image

Benjamin-Loison commented 2 hours ago

Sending from Thunderbird Debian 12 GNOME Pegasus to my private email address with a different subject and body than previous tests and do not be on Thunderbird and have lock screen on both Linux Mint 22 Cinnamon Framework 13 and Fairphone 4 LineageOS seem to be a good test.

Benjamin-Loison commented 2 hours ago

image

Benjamin-Loison commented 2 hours ago

image

Benjamin-Loison commented 2 hours ago

image

Benjamin-Loison commented 2 hours ago

Related to Benjamin_Loison/Thunderbird/issues/49.

Benjamin-Loison commented 2 hours ago

Note that do not have to open the email I sent to myself on another device than the one I am considering otherwise it marks it as read and very probably synchronize it with the server, hence with the synchronized device, so the latter does not emit a notification.

Benjamin-Loison commented 1 hour ago

On wifi more than 15 minutes after email sent, I have been notified, once I unlocked the screen...

As far as I know Inbox is a 1st Class folder.

Note have to paid attention configure all email addresses the same way.

image

image

image

image

image

image

Maybe the issue is from the mail server but I doubt so as forcing synchronization usually works fine.

Benjamin-Loison commented 1 hour ago

Could use another device than the considered one for the Timer to keep its screen locked.

https://duckduckgo.com/?q=online+timer helps.

Benjamin-Loison commented 1 hour ago

While having 2 minutes delay can be fine, more like 15 is not acceptable even if it's an usual upper bound. In case of exceptional error etc I am fine with 15 minutes but such exception should not exist in theory or we should be warned of it and investigate.

Benjamin-Loison commented 1 hour ago

Not notified within 2 min, what about 15? Got it but have to test with screen locked end by end.

With screen locked:

Note that it is fine first to not unlock but turn on phone screen to visually ensure that there is no notification. If fingerprint is enabled, then can use another finger to turn on the screen to avoid unlocking by mistake. Note that have to pay attention to be able to hear the notifications (the timer and the phone one). Visual noticing seems too risky to miss it.

No notification before 2 minutes.

I have not been notified before 15 minutes... This looks like a bug according to settings. Note that my Linux Mint 22 Cinnamon Framework 13 Thunderbird automatically provided a notification quite instantly while not being on Thunderbird but with screen unlocked. On Debian 12 GNOME Pegasus after sending it shows the Inbox and after a few minutes received the email automatically.

Once such test if passed, then can proceed without even turning on the screen. Can turn it on when the timer is finished and will either notice a notification that I missed (except if suddenly got it and do not play the sound notification for instance) or do not notice any, in the latter case the test failed.

In theory no difference with mobile data according to above, so let us just verify with wifi.

Do not touch the screen and move the phone to prevent any unusual situation synchronization.

Also avoid proceeding to other email operations to not have unusual synchronization notification error.

Benjamin-Loison commented 1 hour ago

According to F-Droid K-9 is up-to-date. I do not remember if this app is brought with LineageOS or I installed it. In App info it mentions Seedvault as probably there was no new update since last Seedvault restore.