Author Topic: IMAP doesn't sync if I disable PUSH but have background sync enabled  (Read 4459 times)

andreas.allacher

  • Newbie
  • *
  • Posts: 7
Hi,

I just tried to disable IMAP push for all accounts and enable background sync (set to 15 minutes).
I have also set those settings in the special account settings to be sure there isn't an issue here.
Also added the app to android 6.0 battery optimization ignore list (including the Pro app to be sure).

However, there is no automatic synchronization, is there another settting or is it a bug (which I can verify by last synchronization).
With IMAP push it works fine.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP doesn't sync if I disable PUSH but have background sync enabled
« Reply #1 on: February 02, 2016, 09:26:38 pm »
IMAP push is disabled by default at the account level, and is enabled by default at the app level.

So unless you've enabled it, there is no reason to use "special settings" for this.

Also "scheduled mail checks" are enabled by default at account level and app level.

Can you revert to see how it behaves?

With the default settings, the app should be checking mail every 15 minutes.

Oh, if you keep the app running on the screen (say, a tablet that sits next to you with its screen on) -- please also enable app settings -> mail, receiving -> "when the app is active" ("active" - open on the screen). The default there is to skip scheduled mail checking if the app is open on the screen.
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/

andreas.allacher

  • Newbie
  • *
  • Posts: 7
Re: IMAP doesn't sync if I disable PUSH but have background sync enabled
« Reply #2 on: February 02, 2016, 09:37:14 pm »
I can only find IMAP push settings at the app level (general settings)

And isn't the app using the app level settings unless overriden by special account settings?

I have now enabled both IMAP push and background sync (with 15 minutes) and added the app to battery optimization ignore list.

I will check how it behaves this way and let you know.

Also regarding Push-Mail keep alive feature is that related to IMAP push?
If so, is there a reason why the highest value is 15 minutes?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP doesn't sync if I disable PUSH but have background sync enabled
« Reply #3 on: February 02, 2016, 09:42:58 pm »
Re: I can only find IMAP push settings at the app level (general settings)

Long press an account -> options and folders -> account options

Re: And isn't the app using the app level settings unless overriden by special account settings?

Yes

Re: Also regarding Push-Mail keep alive feature is that related to IMAP push?

Yes

Re: If so, is there a reason why the highest value is 15 minutes?

Yes.

If you're comparing with K9 Mail -- this is not at all the same as their "session duration" or whatever they call it.

The default is 10, please keep it at least for now.
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/

andreas.allacher

  • Newbie
  • *
  • Posts: 7
Re: IMAP doesn't sync if I disable PUSH but have background sync enabled
« Reply #4 on: February 03, 2016, 12:16:49 am »
OK. It seems to work now but it is more like every 30 minutes instead of every 15 minutes (although the setting is set to 15 minutes).
Maybe related to Android 6.0 ? Although I have set the app to ignore battery optimizations.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP doesn't sync if I disable PUSH but have background sync enabled
« Reply #5 on: February 03, 2016, 12:26:42 am »
"Ignore battery optimizations" does not fully revert Android 6 to be like Android 1.0 - 5.1.

The documentation for "doze mode" says that "alarms fire at most every 15 minutes", I guess they can be spaced wider too.
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/