Author Topic: Shifted sync times  (Read 2343 times)

georgius

  • Newbie
  • *
  • Posts: 2
Shifted sync times
« on: September 24, 2016, 07:37:37 pm »
I'm experiencing shifted sync times and I can't any reason for such behaviour. I have 3 accounts:
  • gmail account - synced every 15 minutes
  • company (Exchange) account - synced every 30 minutes
  • outlook account - synced every 6 hours
Every half hour, when gmail and company account should be synced, is synchronization delayed by approx. 3 minutes. I'm attaching debug log, check between 2016.09.23 19:33 and 2016.09.23 22:15, when I ensured that phone is awake approx. 1 minute before sheduled sync time (every 15 minutes) and hold awake at least for 2 minutes.

Phone: OnePlus 3, TWRP 3.0.2, CM 13.0 (SNAPSHOT ZNH5YAO0J6), AquaMail 1.6.2.9 (Pro)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Shifted sync times
« Reply #1 on: September 27, 2016, 03:04:33 pm »
It's normal for recent Android versions to shift the time of "alarms" (scheduled events).

And then OnePlus may have done "something" to "optimize battery usage".

Specifically, the alarm that fired at 19:33 was set at 19:24 and its target time was 19:30.

You can search the log for:

Setting next alarm for 1474652700000 2016-09-23 19:45:00, 30000

and

onReceive extras: setAt = 1474651440671 2016-09-23 19:24:00.671, targetTime = 1474651800000 2016-09-23 19:30:00.000
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/

georgius

  • Newbie
  • *
  • Posts: 2
Re: Shifted sync times
« Reply #2 on: September 28, 2016, 11:33:38 pm »
Quote
It's normal for recent Android versions to shift the time of "alarms" (scheduled events).
I'm fighting with that from the time when I bought new phone.

Quote
And then OnePlus may have done "something" to "optimize battery usage".
Maybe. AquaMail is excluded from battery optimization.

Anyway, same situation happens also when phone is on charger. The shift of time is not always same, it varies.

But I found external solution. I scheduled Tasker to sync mail every 15 minutes (in task Tasker selects by time, which accounts are synced) and set "Use Reliable Alarms" option to "When Off".