felixwiemuth / SimpleReminder

Efficient creation of simple reminders on Android.
Other
60 stars 10 forks source link

Notifications showing erratically on Xiaomi Redmi 9S #35

Open bucintor opened 2 years ago

bucintor commented 2 years ago

After looking at a wide range of "Reminder" applications, this one is by far and arge my favorite. I regret, however, that notifications on the Main Screen appear erratically : one time they are there, other times they are not. As a result, I cannot entirely trust the application to remind me of important events. I would gladly make a donation if I could adopt it permanently because I really do appreciate it. Would the developer be willing to take a deep look in order to fix it ? I have noticed that I am not alone in this. Other users as Sergei Alekseev have signalled the same problem but apparently no solution has been found . I am looking forward to some reaction from the developer. Thank you sincerely.

App version : 0.9.10

Android version : 11

MIUI version : Global stable 12.5.1

felixwiemuth commented 2 years ago

Hi @bucintor,

Thank you for your interest in SimpleReminder and I am glad that you like the app.

I am sorry to hear that it does not work reliably on your device, thanks for the report. Apart from notifications being slightly delayed (see #14), I have not myself observed this issue, and there was only one other related report (#13), also on a Redmi.

The good news: a new version of the app will be released soon. I am in the process of overhauling the app internally, making it ready for the newest Android versions (see #27). This also includes some changes in how notifications are scheduled and shown and setting the notification importance to "urgent", which at least seems to reduce the likelihood for a delay.

I hope that this will fix the issue for you, even though it is unclear why this happens on your device.

You are welcome to make a donation once I have set up a means of receiving them, thanks for your support :).

bucintor commented 2 years ago

Hi Felix, and thank you so much for responding to my message. Allow me to provide some more trougbleshooting hoping this may be useful to understand where the problem is. I have tried three different scenarios :1. I make 3 Reminders for the same day. They all work and notifications are shown in the top bar;2. I make 3 Reminders for next day. In the evening, I power off the phone. Next day, I power the phone but no notifications are shown. If I go to the R icon and click it I can see that the date is under a "Due" with green background, and if I click that icon I can see that the app shows the date of the next day, which was not planned by me;3. I make the same operation under 2. without powering off the phone, thinking that, yesterday, the app could not fire the notification because the phone was off. Yet, next day, no notification is shown.I am very glad to hear that you are going to work to a new version and let me tell you you have conceived a terrific application. I have seen and tested many others like yours and was never satisfied either with the GUI or the way they worked. Yours is by far the best : simple, easy, a pleasure to have. You have a winner here and once the new version is dependable so far as notifications I will more than happy to make a donation or purchase a license. Just let me know when you are ready, please. I wish you all the best and thank you again for your attention to my message.Sincerely,Bruno (aka bucintor)envoyé : 12 octobre 2022 à 11:52de : "Felix Wiemuth (via duck.com)" @.>à : felixwiemuth/SimpleReminder @.>cc : bucintor @.>, Mention @.>objet : Re: [felixwiemuth/SimpleReminder] Notifications showing erratically on Xiaomi Redmi 9S (Issue #35)Hi @bucintor, Thank you for your interest in SimpleReminder and I am glad that you like the app. I am sorry to hear that it does not work reliably on your device, thanks for the report. Apart from notDuckDuckGo removed 1 tracker.More → Hi @bucintor,Thank you for your interest in SimpleReminder and I am glad that you like the app.I am sorry to hear that it does not work reliably on your device, thanks for the report. Apart from notifications being slightly delayed (see #14), I have not myself observed this issue, and there was only one other related report (#13), also on a Redmi.The good news: a new version of the app will be released soon. I am in the process of overhauling the app internally, making it ready for the newest Android versions (see #27). This also includes some changes in how notifications are scheduled and shown and setting the notification importance to "urgent", which at least seems to reduce the likelihood for a delay.I hope that this will fix the issue for you, even though it is unclear why this happens on your device.You are welcome to make a donation once I have set up a means of receiving them, thanks for your support :).—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bucintor commented 2 years ago

Felix, i noticed you asked this to another user. You may want to take a look at ColorNote, which also has reminders. Notifications, in Redmi, appear with no problem, provided you launch the app. Have a good day !

Envoyé depuis l'application Mail Orange ----------------De : Felix Wiemuth (via duck.com) @.>Envoyé : mercredi 12 octobre 2022 11:52À : felixwiemuth/SimpleReminder @.>Cc : bucintor @.>; Mention @.>Objet : Re: [felixwiemuth/SimpleReminder] Notifications showing erratically on Xiaomi Redmi 9S (Issue #35) Hi @bucintor, Thank you for your interest in SimpleReminder and I am glad that you like the app. I am sorry to hear that it does not work reliably on your device, thanks for the report. Apart from not

                                    DuckDuckGo removed 1 tracker.

                                    More →

Hi @bucintor, Thank you for your interest in SimpleReminder and I am glad that you like the app. I am sorry to hear that it does not work reliably on your device, thanks for the report. Apart from notifications being slightly delayed (see #14), I have not myself observed this issue, and there was only one other related report (#13), also on a Redmi. The good news: a new version of the app will be released soon. I am in the process of overhauling the app internally, making it ready for the newest Android versions (see #27). This also includes some changes in how notifications are scheduled and shown and setting the notification importance to "urgent", which at least seems to reduce the likelihood for a delay. I hope that this will fix the issue for you, even though it is unclear why this happens on your device. You are welcome to make a donation once I have set up a means of receiving them, thanks for your support :).

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

felixwiemuth commented 2 years ago

Thanks for the further information, it is good to know that it is an issue with reminders which are a bit further in the future (e.g. next day).

It should not be a problem to switch off the phone in between if under settings "Activate on device startup" is enabled.

Clicking on a reminder in the list opens the dialog to edit/reschedule it, and if the original date is in the past as in your case, it will automatically suggest the next day. I hope it now makes sense for you.

Thanks also for mentioning the other app, if it is open source I'll take a look in case the issue persists after the update. You say about this app that notifications appear with no problem "provided you launch the app" - do you mean that notifications first appear after launching the app? That would not be enough for me.

bucintor commented 2 years ago

Hi Felix, I agree with you that automatically suggesting the next day makes sense. I just mentioned it because I did not know whether this "next day" was intentional or an error.

The ColorNote is not open source, unfortunately, just Windows.

"Provided you launch the app". Yes, that means that notifications appear "after" you launch the Reminder app. That means that if you want the notification to appear in the top bar you have to launch the app in the first place, an action that will trigger the notification. This intentional action (launching the app) is in a way to recognize that you have to think about something that day (let me go and see if "Reminider" has something for me today). In other words, even before seeing the notification, by just launching the app you recognize that you need to remind yourself of something. You have done yourself a "personal" reminder ; all the rest is just verification. What would be more natural, and helpful, is that the notification is shown even if you have not launched the application. The sequence (just to do an example) should be this : you turn on the phone (which you had powered off for the night) and, immediately, you see the Reminder icon in the top bar. You think : Ah, there is something I should not forget today ! Let me click on the notification and see what it is. All this without opening the application. In other words, without being obliged to launch the app every day to see if you have to be reminded of something, you should see a Reminder icon immediately after powering the phone. Your reaction would be : ah, I was forgetting something, thankfully Reminder reminded me. Let's see what it is, and then you launch the app for the details. Does that make sense to you ? P.S. You can count on me if you want me to do some troubleshooting with Reminder as it is now or testing a new version. P.S. 1 Other apps, like e-mail, for example, behave as described above. You power on the phone and without doing anything else you can see the daily notification icons on the top bar.

bucintor commented 2 years ago

To help with some troubleshooting, this is what I have done yesterday, October 17.

Reminder set for October 18 at 7 am. Phone off for the night.

Phone settings for this operation :

Activate on device startup : enabled (picture 1) Battery optimisation : disabled for Reminder (picture 5) Allow floating notifications : allowed Vibration : off On the Lock Screen : show Show notifications : enabled

Result : phone powered on today October 18 at 08:55 : no icon notification

Verification :

clicking Reminder icon shows "Due" on green background (picture 2) and Reminder scheduled for next day;

concerning battery optimization, which the app wants to be disabled for Reminder, settings : Special App Access, BatteryOptimization, under "Not optimized" show Simplereminder . By clicking the icon, it shows "Don't optimize" as being enabled (picture 3, 4, 5)

Final "on/off" test, today October 18 :

  1. Today, October 18, Reminder set at 13:46, phone not powered off. Result : icon shows on top bar (picture 6)
  2. Today, October 18, Reminder set at 14:02, phone then powered off. Phone powered on several minutes after. Result : no icon (picture 7) and reminder scheduled for next day, no notifications (picture 8, 9)

Picture 1 Picture 2 Picture 3 Picture 4 Picture 5 Picture 6 picture7 picture 8 picture 9

felixwiemuth commented 2 years ago

Hi again and thanks for the further information. All settings seem fine.

Of course SimpleReminder is supposed to show notifications regardless whether you open the app or not, even when you powered off the phone in the meantime (and also when you power it on after the reminder becomes due, then it just may take a few minutes after startup).

Note that the reminder is not scheduled for the next day yet just by clicking on it and opening the editing dialog. It is only rescheduled when you confirm the change by clicking on "Add".

Regarding how reminders are shown: there are currently no further details to be shown when you click on the notification, reminders for now only contain one text (as much as you like) and all of it appears in the notification.

For now I would suggest that you do not worry further until you have tried the new version (I will let you know when it is available). In case the problem persists, I'll of course be happy for your detailed feedback and testing, but let's hope this is not necessary.

bucintor commented 2 years ago

Hi Felix, thank you for your response. I had not realized the "Add" detail, so that you for that. OK, I am sure you will come up with the right solution, thus making your app even more valuable. I'll be here, if you need some testing or other troubleshooting. Best.

felixwiemuth commented 1 year ago

The new version is released now and it should show up on F-Droid within a few days.

But there is actually one more thing you could try now before updating to the new version (and it would be good to know whether this already helps for the current version): There is a website and app with guides and tools regarding making background tasks work on different devices: https://dontkillmyapp.com/xiaomi. You can find the app in F-Droid: https://f-droid.org/en/packages/com.urbandroid.dontkillmyapp/.

Could you try following the guide for Xiaomi devices (and maybe do the benchmark from the app) and see whether it helps? You have probably already tried most of the things, but I think there are also some new. Let me know what you have tried!

bucintor commented 1 year ago

Hi Felix, I was very happy to receive your message and learn that the new version is coming out shortly. I am thrilled.Concerning the test you described, I will try and let you know the outcome.Thanks again for your work. I can't wait.envoyé : 5 novembre 2022 à 16:16de : "Felix Wiemuth (via duck.com)" @.>à : felixwiemuth/SimpleReminder @.>cc : bucintor @.>, Mention @.>objet : Re: [felixwiemuth/SimpleReminder] Notifications showing erratically on Xiaomi Redmi 9S (Issue #35)The new version is released now and it should show up on F-Droid within a few days. But there is actually one more thing you could try now before updating to the new version (and it would be good to kDuckDuckGo removed 1 tracker.More → The new version is released now and it should show up on F-Droid within a few days.But there is actually one more thing you could try now before updating to the new version (and it would be good to know whether this already helps for the current version): There is a website and app with guides and tools regarding making background tasks work on different devices: https://dontkillmyapp.com/xiaomi. You can find the app in F-Droid: https://f-droid.org/en/packages/com.urbandroid.dontkillmyapp/.Could you try following the guide for Xiaomi devices (and maybe do the benchmark from the app) and see whether it helps? You have probably already tried most of the things, but I think there are also some new. Let me know what you have tried!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bucintor commented 1 year ago

Felix, further to your indications, I have set myself in developer mode and turned on "MIUI optimizations" (note that the Sleep option suggested setting at the site is only available as of MIUI ver.10 ; mine is 9S and ver. is "MIUI Global 12.5.1 Stable"). Next I have checked that Notifications for Reminder are extensively allowed. Next I have gone to F-Droid and installed "DontKillMyApp" and started a 2-hour benchmark (would 2 hours be sufficient or should I set a longer time ?). While Benchmark is running I am not touching the phone nor am I charging it. Pls adv.envoyé : 5 novembre 2022 à 16:16de : "Felix Wiemuth (via duck.com)" @.>à : felixwiemuth/SimpleReminder @.>cc : bucintor @.>, Mention @.>objet : Re: [felixwiemuth/SimpleReminder] Notifications showing erratically on Xiaomi Redmi 9S (Issue #35)The new version is released now and it should show up on F-Droid within a few days. But there is actually one more thing you could try now before updating to the new version (and it would be good to kDuckDuckGo removed 1 tracker.More → The new version is released now and it should show up on F-Droid within a few days.But there is actually one more thing you could try now before updating to the new version (and it would be good to know whether this already helps for the current version): There is a website and app with guides and tools regarding making background tasks work on different devices: https://dontkillmyapp.com/xiaomi. You can find the app in F-Droid: https://f-droid.org/en/packages/com.urbandroid.dontkillmyapp/.Could you try following the guide for Xiaomi devices (and maybe do the benchmark from the app) and see whether it helps? You have probably already tried most of the things, but I think there are also some new. Let me know what you have tried!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bucintor commented 1 year ago

The Benchmark routine is finnished and these are the results :Benchmark Redmi Note 9STotal 98%Work 100%Main 100%Alarm 96%Will this suffice ?envoyé : 5 novembre 2022 à 16:16de : "Felix Wiemuth (via duck.com)" @.>à : felixwiemuth/SimpleReminder @.>cc : bucintor @.>, Mention @.>objet : Re: [felixwiemuth/SimpleReminder] Notifications showing erratically on Xiaomi Redmi 9S (Issue #35)The new version is released now and it should show up on F-Droid within a few days. But there is actually one more thing you could try now before updating to the new version (and it would be good to kDuckDuckGo removed 1 tracker.More → The new version is released now and it should show up on F-Droid within a few days.But there is actually one more thing you could try now before updating to the new version (and it would be good to know whether this already helps for the current version): There is a website and app with guides and tools regarding making background tasks work on different devices: https://dontkillmyapp.com/xiaomi. You can find the app in F-Droid: https://f-droid.org/en/packages/com.urbandroid.dontkillmyapp/.Could you try following the guide for Xiaomi devices (and maybe do the benchmark from the app) and see whether it helps? You have probably already tried most of the things, but I think there are also some new. Let me know what you have tried!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bucintor commented 1 year ago

I am now doing a number of tests, during a couple of days, to determine whether there has been any change. I'll give you a full report at the end. Have a good Sunday !envoyé : 5 novembre 2022 à 16:16de : "Felix Wiemuth (via duck.com)" @.>à : felixwiemuth/SimpleReminder @.>cc : bucintor @.>, Mention @.>objet : Re: [felixwiemuth/SimpleReminder] Notifications showing erratically on Xiaomi Redmi 9S (Issue #35)The new version is released now and it should show up on F-Droid within a few days. But there is actually one more thing you could try now before updating to the new version (and it would be good to kDuckDuckGo removed 1 tracker.More → The new version is released now and it should show up on F-Droid within a few days.But there is actually one more thing you could try now before updating to the new version (and it would be good to know whether this already helps for the current version): There is a website and app with guides and tools regarding making background tasks work on different devices: https://dontkillmyapp.com/xiaomi. You can find the app in F-Droid: https://f-droid.org/en/packages/com.urbandroid.dontkillmyapp/.Could you try following the guide for Xiaomi devices (and maybe do the benchmark from the app) and see whether it helps? You have probably already tried most of the things, but I think there are also some new. Let me know what you have tried!—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

bucintor commented 1 year ago

Further to my last message, and after doing some tests today, I do not think that further tests should be necessary in that we still have a partial notification problem. I'm saying partial because if I set Reminder 10-15' from current hour, as I did several times this morning, it will show a notification on the home screen as well as in the top bar. This works whether the screen is active or sleeping (but power always on). The problem arises, again, when I set a reminder yesterday, as I did, for next day. Then no matter whether the screen is active or sleeping, we do not get a notification and the app indicates "due", scheduling the reminder for next day. So, apparently, the adjustments I did yesterday have not made things better. The positive right now is good reminders during the same day but not scheduled for coming days. One caveat, though : if the phone is powered off during the day, Reminder will not provide a notification for a setting set for the very same day ; in other words, it works, as I said, during the day provided you dont power off the phone. Also positive is the nagging button, which works fine and repeats as many times as requested. If you want me to do some other testing, I'll be happy to help.

felixwiemuth commented 1 year ago

Hi @bucintor, thanks a lot for your quick response and testing!

I guess the benchmarks look fine, but they actually don't test the relevant aspect either (scheduling some task and letting the phone sleep for many hours).

Just to be sure, did you try all of the suggestions from the dontkillmyapp website? As I understand, you have MIUI 12 and there is a section for it on the website.

You write that you turned on MIUI optimizations, but the point is to turn it off - is that what you did?

After the section on MIUI 12, there are also the sections "Power management", "App battery saver" and "Autostart" - did you check those?

What sounded especially promising to me was this "app pinning" (at the very top), as it might prevent the system from killing the app.

If nothing of this helped, you can revert the advanced settings again and disable developer mode. Of course the app should still be exempt from battery optimization and auto start should be allowed.

As I understood, reminders for the same day / not too far ahead already worked fine before, or did you notice an improvement there?

And please don't waste any further time testing if applying all the recommendations from the dontkillmyapp website don't help for the over-night reminder. We will look at the new version then.

P.S. Could you try to reply directly on Github instead of via email? There seems to be something wrong with your reply-formatting so that it looks a bit messy on Github.

bucintor commented 1 year ago

Hi Felix, I turned optimizations On because I seemed to understand that was needed. So I will turn it off again (done). I have reviewed every single setting suggested at the site you indicated (some needed a better adjustment) and made sure my MIUI was now consistent with them. I will again carry out some testing to check if there are changes in app behavior and get back to you with comments. Of course I can reply directly on Github.

felixwiemuth commented 1 year ago

Thanks, sounds good! And yeah it would be great if you can test with disabled MIUI optimizations, especially the longer-ahead reminders (over night); it is these optimizations which can make problems with background tasks (I agree that it is not very well described on the website).

bucintor commented 1 year ago

I will launch an 8-hour benchmark testing (which is the maximum) and in this time span I will include a reminder, thinking that if there is a hindrance it will be better shown by the results. But I am no data processing expert, so I need to know from you, before I start, if this approach is the one you want or should I instead avoid including a reminder. Pls adv. at your earliest convenience so that I can start.

felixwiemuth commented 1 year ago

Thanks for asking - it will actually be best to not run the benchmark at the same time, but just the reminder. The reason is that the fewer other things are running which could wake the phone, the more "difficult" are the conditions for the reminder app.

(It might also be the case that the system just kills the app and all its "alarms" (reminders) after it hasn't been used for a few hours, in which case it wouldn't make a difference.)

bucintor commented 1 year ago

I am not sure I understand your answer correctly. "Not to run the benchmark but just the reminder" : what I meant in my message was to run the benchmark for 8 hours and in that time span set Reminder to run a reminder at some point - all this in order to verify, through the results of the benchmark, whether running Reminder would create any sort of obstacle to the app functioning correctly.

Reading in your message "just the reminder" means : dont run benchmark, just the reminder. Is that what you mean ? Also : the "system killing the app wouldn't make a difference" : isn't that what we are trying to determine ? Is the system killing the app or not ? As you see I am kind of confused about what to do. You may throw some light on how to proceed before I start.

felixwiemuth commented 1 year ago

I'm sorry that my message wasn't entirely clear. But you understood correctly: I'd like to see what happens if you just schedule a reminder with SimpleReminder over night, and see whether it comes in the morning without using the phone in between and not having other apps do anything before the reminder becomes due (that is, don't set other alarms, don't run benchmarks etc.).

I sometimes try to add some technical detail to give you an impression what the reasons can be for the problem, which can be different things and is complicated. It can be that MIUI kills the app if it wasn't actively used for a while. But it could also be that the system defers processing of an app's tasks (like a scheduled reminder) while there is no other activity (which the benchmark would be). But no worries, you don't have to understand the details.

bucintor commented 1 year ago

OK, that is very clear now. I just want to make a final review in the "developer" section of the phone, based on the recommendation you made in a previous message (Dontkillmyapp, both links), and then schedule a reminder with SimpleReminder over night without using the phone in between and not having other apps do anything before the reminder becomes due. No other alarms set and no benchmarks - as you indicate. I'll do it tonight and let you know the result tomorrow.

felixwiemuth commented 1 year ago

Thank you very much!

bucintor commented 1 year ago

I have good news, finally. Yesterday, SimpleReminder had been set for 6:00 am today, the phone had been powered off all night, and powered on again this morning at 8:00 am. Once the phone boot was completed I noticed that a reminder was pinned at the very top and a white banner with the word "Reminder" had come out below the top bar. Strangely enough, the usual blue "R" icon had changed to an old-fashioned alarm clock. With the phone powered on, I have set three more reminders and all have come out at the right time, with the same top bar icons. Nagging works normally according to the minute setting and keeps sending the white banner to the home screen until you dismiss it by swiping it as a normal notification.

To sum up, even with the phone in sleeping mode, we now have two notifications on the home screen : an icon pinned at the top and a white banner coming out and showing whatever wording was chosen. Plus, a useful reminder triggered by the nagging button, that keeps coming out as if asking you to take the expected action, until you dismiss it. That is really the desirable and expected behavior.

By the way, is there a fixed number of times the nagging button launches a reminder or does it come out until dismissed ?

Also, I wonder why there are two Reminder icons (blue R) among my apps : one is titled "SimpleReminder", the other "Add reminder", but both have the same function, even if only one of them shows the reminder status. One offers a plus sign to add a reminder, the other shows a clock to add it. Do I need both or can I delete one of them (which one, in fact) ?

I would now like to test the app a little more with different scenarios (for example, during the day and with power on, have 3 or 4 app open and then see if Reminder is affected by that). Also I would like to test the successful wakeup again to ensure that we have a consistent behavior. My assumption is that the planned, accurate review, and application, of the settings suggested by the two links you had mentioned was crucial to the good outcome. If the app good behavior is confirmed, I will post a full list of all the settings linked with SimpleReminder so that you may spot the ones that are key to a good and stable performance. That list might be useful to other users who have or have had the same problem with the application. I have no doubt that the new version you have been working on is a further step towards making your application even more attractive and valuable.

felixwiemuth commented 1 year ago

Thank you for your report!

I guess the difference to your testing before was that you turned off MIUI optimizations. I am however also curious about whether you were able to apply the "app pinning" suggested in the guide? It would be great if that was the only setting you need to make it work (not having to disable MIUI optimizations).

the phone had been powered off all night, and powered on again this morning at 8:00 am.

So you mean completely powered off (shut down), and not just in sleep mode (screen turned off)?

Once the phone boot was completed I noticed that a reminder was pinned at the very top

It is good to know that reminders show after a booting. However, this is actually the "easier" scenario.

Would you mind testing once more where the phone stays powered on over night, but in sleep mode (i.e., screen turned off) and not using it or turing the screen on? What should happen then is that the reminder shows exactly at the set time, without that you have to turn the screen on. If you have sound or vibration enabled, it will make a sound or vibrate (like for other notifications) and probably the screen will briefly turn on. If you can manage to be ready to look at the screen just before the reminder is about to be due and see whether it comes at the right time (preferably to the second) without you doing anything, that would be great.

and a white banner with the word "Reminder" had come out below the top bar. Strangely enough, the usual blue "R" icon had changed to an old-fashioned alarm clock.

It is intended that the notification is labeled "Reminder" and has an alarm clock symbol. Depending on how MIUI works, it might use the app's "R" symbol at some places.

With the phone powered on, I have set three more reminders and all have come out at the right time, with the same top bar icons. Nagging works normally according to the minute setting and keeps sending the white banner to the home screen until you dismiss it by swiping it as a normal notification.

Sounds good.

I would now like to test the app a little more with different scenarios

Great!

If the app good behavior is confirmed, I will post a full list of all the settings linked with SimpleReminder so that you may spot the ones that are key to a good and stable performance.

Perfect. It will indeed be useful to Redmi/MIUI users.

I have no doubt that the new version you have been working on is a further step towards making your application even more attractive and valuable.

I hope so :). Please wait with updating to the new version while you are testing a bit more - it would be great to know whether you can observe a difference (for instance, whether the specific settings you are using now are not required with the new version).

Regarding your questions about nagging reminders and other functionality, you might want to read the help text found in the app (see the menu at the top right in the reminders list). If anything is unclear, you are welcome to ask questions in the discussions. The icons you refer to are called "launcher icons" and they should do different things: one opens the reminder list, the other opens the dialog to add a reminder. You can decide what you need on your home screen but they will always both be in the list of available apps.

bucintor commented 1 year ago

Here are the answers to your queries :

App pinning came out by itself, meaning I did not follow the guide procedure.

The phone was actually shut down.

Reminder came alive always at the right time but I can make another test according to your indications.

You ask me to wait with updating to the new version : is there a new version available on site ?

As indicated in my last message, below is a list of all the settings used for SimpleReminder :

SimpleReminder settings based on ver. 0.9.10 (910700) :

These settings should be enabled :

Activate on device startup Battery optimization (OK Battery optimization is disabled.....ecc.) Default : 5' Show notifications Allow floating notifications Vibration Show all notifications

In Redmi, these settings should be enabled :

Notification & Control Center App notifications : SimpleReminder Permissions, Autostart : SimpleReminder Other permissions : SimpleReminder is indicated as having 4 permissions, namely :

Battery optimization : SimpleReminder not optimized

As regards Developer Options, these settings are enabled :

Developer Options : on Automatic system update : on Verify bytecode of debug : on Wi-Fi scan throttling : on Tethering hardware accel.. : on Unable Bluetooth page sc.. : on Show notification channel : on

bucintor commented 1 year ago

Would you mind testing once more where the phone stays powered on over night, but in sleep mode (i.e., screen turned off) and not using it or turing the screen on? What should happen then is that the reminder shows exactly at the set time, without that you have to turn the screen on. If you have sound or vibration enabled, it will make a sound or vibrate (like for other notifications) and probably the screen will briefly turn on. If you can manage to be ready to look at the screen just before the reminder is about to be due and see whether it comes at the right time (preferably to the second) without you doing anything, that would be great._

Test : yesterday November 8 at 11 p.m. SimpleReminder was set at November 9 09:33 am. Phone was then put down and entered sleeping mode. Phone was left untouched until this morning November 9 and hand-lifted to wake up precisely at 09:33. Screen became immediately active and showed the white banner, confirming that the app had fully complied with the required setting.

felixwiemuth commented 1 year ago

Thanks again;

App pinning came out by itself, meaning I did not follow the guide procedure.

So you mean SimpleReminder is pinned/locked, and that was already the case on its own? That would be a bit strange. Let's make sure whether the app was pinned/locked or not. From the dontkillmyapp website:

When you open the recent apps tray, drag your app downwards (it will be locked). So, even if you clear recent apps, it will not clear them from the background. Drag downwards again to clear your app from the background. On some phones, you need to long-press Your app and then choose the padlock icon from the menu:

I guess the symbol will change to some locked state. Can you try verify whether the app is pinned/locked according to this description?

Thanks for the list of settings.

Sounds good that it seemed to work over night!

Phone was left untouched until this morning November 9 and hand-lifted to wake up precisely at 09:33.

I am not entirely sure whether you mean a) you lifted the phone to wake it up or b) the reminder made it wake up without you doing anything - could you clarify? The reason I ask is that sometimes the reminder first comes when one makes the phone wake up (e.g. by touching the screen or lifting it). But it is supposed to come on its own, without doing anything to the phone.

The new version just became available on F-Droid, yes, but it would really be good if you wait with updating before we have tested enough with the current version.

It seems likely that switching off MIUI optimizations made the difference, right? If you try again with that setting reversed (and developer options disabled), we could be more sure about this. I have still the hope that app-pinning/locking alone would do the job though, that is why I am asking again about it, to make sure we are talking about the same setting :).

bucintor commented 1 year ago
  1. Pinned/locked. I mean that when I lifted the phone the first time this morning, Reminder icon was pinned at the top and the white banner appeared at the same time on screen. Note that I waited until the exact hour/minute was due before I lifted the phone. That was a particular request of yours. I cannot lock the app by swiping down as this feature is not supported by my Redmi model.

  2. Reminder did not wake up the phone without my doing anything. The screen went off (that is became active, however you want to call it) only when I lifted the phone at the exact time set in Reminder. "But it is supposed to come on its own, without doing anything to the phone". I probably was too quick to lift the phone at the specified time because you had asked me to verify up to the second if Reminder was triggered exactly as requested. Had I waited, Reminder would certainly wake up the phone. I just made another test with the phone sleeping and after I have the black screen I can see that Reminder actually wakes up the phone at the requested time and the screen goes off. So, the behavior you expect does actually happen. In addition, even if the phone sleeps, nagging continue to wake up the sleeping phone until dismissed.

I am afraid I cannot switch back optimization as I have a hard time putting the phone in developer mode.

felixwiemuth commented 1 year ago
  1. Pinned/locked. I mean that when I lifted the phone the first time this morning, Reminder icon was pinned at the top and the white banner appeared at the same time on screen. Note that I waited until the exact hour/minute was due before I lifted the phone. That was a particular request of yours. I cannot lock the app by swiping down as this feature is not supported by my Redmi model.

Okay good to have that clarified. With app pinning/locking I refer to the functionality described by the dontkillmyapp website and I think also your device should support it. Can you try this: open the app called "Security", then "Settings" -> "Boost speed" -> "Lock apps", and turn it on for SimpleReminder? (This is what this video explains.)

2. Reminder did not wake up the phone without my doing anything.

Okay. Maybe next time you can give it a few minutes before touching the phone; the reminder might come a little bit later, that would still be better than not at all without touching the phone.

I am afraid I cannot switch back optimization as I have a hard time putting the phone in developer mode.

In case you have disabled developer mode, I would guess that the settings have also reverted, but I am not sure. The dontkillmyapp website describes how to enable enable developer mode.

bucintor commented 1 year ago

Take a look at my last message because I edited the content.

felixwiemuth commented 1 year ago

Actually, it is also good to know that the reminder comes on time when you lift the phone at that moment!

Had I waited, Reminder would certainly wake up the phone. I just made another test with the phone sleeping and after I have the black screen I can see that Reminder actually wakes up the phone at the requested time and the screen goes off.

Great! However, it might still make a difference when the phone sleeps for very long, like over the night, as it might kill the app only then.

So, it will still be interesting to see whether the reminder comes in the morning on its own. Preferably with MIUI optimizations enabled again (default) and SimpleReminder locked (as shown in video).

I am sorry that you have to bother with all these complicated scenarios to get it to work reliably; it is unfortunately quite unpredictable what all the different phones do in different situations :shrug:.

bucintor commented 1 year ago

I'll do another long test this evening setting wake time at 09:35. Let's see, tomorrow, if Reminder comes out on its own without touching the phone at all.

I have not disabled Developer mode and I know that the site asks to tap 10 times in order to activate it. I did it several times today and cannot get to work it.

felixwiemuth commented 1 year ago

I'll do another long test this evening setting wake time at 09:35. Let's see, tomorrow, if Reminder comes out on its own without touching the phone at all.

Perfect.

I have not disabled Developer mode and I know that the site asks to tap 10 times in order to activate it. I did it several times today and cannot get to work it.

If you have not disabled it, the developer options should be under Settings -> "Additional settings" -> "Developer options". There you can enable MIUI optimizations again.

Could you find the "app locking" settings as shown in the video?

bucintor commented 1 year ago

OK, Optimizations turned on. Let's see what happens tomorrow morning.

bucintor commented 1 year ago

Phone went to sleeping mode last night at 09:30 pm and was left untouched all night. Reminder had been set to trigger at 09:30 am this morning. That is exactly what happened : a few seconds after 09:30 am the screen went off to show the white banner. Optimization, as I said, was turned ON and apparently did not cause any problem.

felixwiemuth commented 1 year ago

Wow that sounds good! Now I am curious how the settings differ to when you first tested at the very beginning and it didn't work; as I understand from your descriptions, it was basically only MIUI optimizations on/off which you changed: at the beginning this was on (default) and reminders didn't work reliably, then you switched it off, reminders worked reliably, now you switched it on again and reminders still work reliably.

bucintor commented 1 year ago

Phones, and Pcs, as we all know, often behave in unpredictable manner, but my assumption is that the difference in behavior might be explained by a Redmi automatic system update applied by Xiaomi at some point during the timespan of all these tests.

A propos the new version, can I install it on the current version or do you suggest that I first uninstall the older version and then proceed with the installation of the new one ?

Also, do you think that Optimization should stay on or should it return to the OFF position ?

felixwiemuth commented 1 year ago

Ah, that is of course unfortunate that there was an update in between; was it a major update? Maybe you could post the current version numbers again. If it is just a regular update and no bigger update, it's unlikely that it makes a difference here, but it's possible.

If there is no need to change it, it would be best to keep the MIUI Optimization setting in the default state, which was ON if I don't mistake. Especially as it is hidden as a developer option. It would be best if we can make it work reliably without having to change this setting.

I am not completely convinced yet that the problems won't return, having turned MIUI Optimizations on again. My preference would be that you keep testing/using SimpleReminder for a while, also having rebooted the phone after MIUI optimizations were turned on again, and see whether there are any problems with reminders showing on time.

There is no need to uninstall the current version (which would delete all your reminders and settings), one can just update, but if you want to move back to the previous version you'll have to uninstall first. But for me it is of great value to see whether it is the settings you changed on your phone that made reminders work reliably or whether the app update will make a difference.

bucintor commented 1 year ago

"My preference would be that you keep testing/using SimpleReminder for a while, also having rebooted the phone after MIUI optimizations were turned on again, and see whether there are any problems with reminders showing on time."

OK I will keep the old version 0.9.10 (910700) until next year. I have set 10 reminders for the next few weeks, to determine if a new problem arises.

felixwiemuth commented 1 year ago

You don't have to wait for that long, it would be enough if you use the app normally for a while so that different situations have been tested a few times. Especially the over-night test, seeing whether the reminder comes without touching the phone, is interesting, and whether reminders generally are not delayed. Thanks for your help!