Author Topic: IDLE/Push not working correctly  (Read 5830 times)

pushplz

  • Newbie
  • *
  • Posts: 3
IDLE/Push not working correctly
« on: December 30, 2013, 02:07:11 am »
I downloaded aquamail and setup my gmail account and another email account I have with push enabled. After trying the free version for a week or so I decided to buy the pro version. Things seemed to be working ok but in the last week or so I am sometimes getting email almost 10 minutes late. I tried changing the "Push mail keep-alive" from the default of 10 minutes down to 5 minutes but it hasn't helped. Also, changing the keep-alive setting has made aquamail go from under 5% battery usage to over 30% so that's no good either. Any ideas on how to fix the push issues?

Android 4.2.2 / aquamail pro 1.3.4

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IDLE/Push not working correctly
« Reply #1 on: December 31, 2013, 02:22:17 am »
First, on the battery issue - 1.3.4 had a bug which could occasionally cause high battery use by push code. The 1.3.6 rolling out now has this fixed.

Second, Gmail's server already sends keepalives every 5 minutes.

Third, did anything else change? Are you visiting relatives over the holidays, did you get a new WiFi router, that sort of thing? In other words, any changes in the device's network connectivity?
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/

pushplz

  • Newbie
  • *
  • Posts: 3
Re: IDLE/Push not working correctly
« Reply #2 on: December 31, 2013, 07:15:57 am »
The battery issues does seem to be fixed with the update so that's good.

Nothing changed with my network setup at all router, location, or otherwise. In fact, when the problem has occurred I've been at home for hours connected to wifi before mail delivery becomes delayed. I didn't know the gmail server sends keep-alives every 5 minutes already. I also have a second non-gmail IMAP account configured so I just modified them both to 5 minutes. If the connection from aquamail to the mail server was closed by my router I'm guessing the keep-alive from the server would do no good. With that in mind, what I don't get is since I have the keep-alive set to 5 minutes in aquamail even if the connection were killed somehow wouldn't I expect a mail delay of less than 5 minutes since the connection would be re-established since aquamail would fail to send the next keep-alive?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IDLE/Push not working correctly
« Reply #3 on: January 04, 2014, 02:56:19 am »
Yes, there is code to detect connections going dead and re-establish them (although it might not be quite perfect for Gmail, if the app starts out receiving the server-sent keepalives, and then they stop).

Since you mention WiFi -- Android 4.2+ has a setting to prevent putting the WiFi hardware into low energy state (which can have compatibility issues with some routers).

Can you try this as a test, and see if it makes a difference?

This is in system settings -> WiFi -> Menu -> Advanced -> turn off "WiFi optimization". I'm attaching a screenshot from my Nexus 5 (4.4.2, but the setting is present since 4.1 or 4.2...)

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/

pushplz

  • Newbie
  • *
  • Posts: 3
Re: IDLE/Push not working correctly
« Reply #4 on: January 04, 2014, 10:47:11 am »
That setting is on for me as in your screenshot so I'll turn it off and see what happens. The issue is intermittent so I'll give it a few days and see what happens and let you know.

Thanks.