Author Topic: Scheduled synch does not work properly for intervals below 5 minutes  (Read 7022 times)

teglicha

  • Newbie
  • *
  • Posts: 13
Re: Scheduled synch does not work properly for intervals below 5 minutes
« Reply #15 on: April 22, 2017, 09:06:59 am »
Ok. All I want to is apps to work reliably. I don't have many "alarms" that need to coalesce (with all advantages of this method) anyway. I want every single alarm/event to fire on time. I have a big battery.
This reminder app is just working reliably.
Maybe an advanced option somewhere for use of this "exact" method, called something like "alternative schedule method for special devices" wuoild solve issues like this?!

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Scheduled synch does not work properly for intervals below 5 minutes
« Reply #16 on: April 23, 2017, 04:18:23 pm »
Re: All I want to is apps to work reliably.

It does work reliably except on certain phone models from certain manufacturers which deliberately break Android.

BTW, the "alarm window" (coalesce interval) used by Aqua Mail is 30 seconds.

Re:  I don't have many "alarms" that need to coalesce

"alarms" isn't just "morning wake up alarms"... I don't think you have a way to know how many alarms are actually used / fired by all the software on your phone.

Re: This reminder app is just working reliably.

Good, it means your phone's manufacturer did not break the "exact" methods.

There is nothing to prevent it to do this in the future, accidentally or intentionally.

Until recently, even on Xiaomi phones, "whitelisting" Aqua Mail in MIUI settings was enough to make it work reliably and predictably.

And then Xiaomi broke this, accidentally or intentionally.

Re: Maybe an advanced option somewhere for use of this "exact" method,

Nah, a setting would only be discovered by maybe 1% of users who need it.

If we do it, the code will use it automatically (maybe detect Xiaomi in general, maybe certain models).

---

But this is what really amazes me:

Your phone's Android is deliberately broken by the manufacturer.

Why not demand a fix from them?

There are tens of thousands of different Android device models out there right now.

They're all supposed to work the same and not require any "magical" fixes ("use function A which works instead of function B which works on all devices except those from this manufacturer that decided to break it")?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Scheduled synch does not work properly for intervals below 5 minutes
« Reply #17 on: April 23, 2017, 05:18:04 pm »
Re: If we do it, the code will use it automatically (maybe detect Xiaomi in general, maybe certain models).

Done, let's see if it makes any difference:

https://www.aqua-mail.com/forum/index.php?topic=5640.0
« Last Edit: April 23, 2017, 05:23:14 pm by Kostya Vasilyev, Aqua Mail »
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

teglicha

  • Newbie
  • *
  • Posts: 13
Re: Scheduled synch does not work properly for intervals below 5 minutes
« Reply #18 on: April 25, 2017, 12:51:58 pm »
Ok, you are 95% right. I was not supposed to insult or anything and I'm glad you didn't accept it that way.
Here's what I think, I might be wrong.
If 'exact' methods do actually work as expected, then it's as it's supposed to be - the very fact methods with 'exact' in their name exist assumes methods with no 'exact' would work differently - the way you described it (nearby alarms coalesced to fire at once on predefined interval frequency). That's why I assumed 'exact' should be used when there are important alarms/notifications that need to attract user's attention at exact moments (if the user wants it through a setting for example).

For now I switched to Push, and it works Ok so far. Still once or twice it missed a mail but it might be google's gcm servers fault.
I'll wait for the next playstore version before I'll give it a test, because I need my email to work reliably and I'm not inclined to test beta or so versions.
Out of curiosity, what change did you do for the experiment? using 'exact' for xiaomi devices?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Scheduled synch does not work properly for intervals below 5 minutes
« Reply #19 on: April 25, 2017, 08:21:29 pm »
Re: Out of curiosity, what change did you do for the experiment? using 'exact' for xiaomi devices?

Yep.

setExactAndAllowWhenIdle

Re: That's why I assumed 'exact' should be used when there are important alarms/notifications that need to attract user's attention at exact moments

Yes that's the idea.

Or - "when a manufacturer deliberately screws up their phone" :)
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/