Author Topic: IMAP Push stopped working  (Read 11522 times)

jared.leinbach

  • Newbie
  • *
  • Posts: 5
IMAP Push stopped working
« on: March 17, 2016, 05:17:39 pm »
Hello,

I am a complete AquaMail noob so please forgive my lack of knowledge.  I installed AquaMail on a Galaxy S7 Edge (ATT/USA) for use with a single Exchange account.  Everything worked beautifully and I couldn't be more thrilled about the app.  There is simply nothing else out there that provides the flexibility I need/want (or even comes close).  Then this morning I notice that I'm not getting any push messages for new emails.  I've searched the forum for similar issues and can't find anything that applies.  Based on your requests for additional information in some of those cases, below is my situation (please let me know if I forgot anything).  I hope communicating my AquaMail setting via images is ok.  Thanks in advance for any help:

1) When I run an AquaMail Scheduled Sync everything comes in as desired
2) System level Auto Sync is turned on
3) My AquaMail settings are as per attached images

Jared

jared.leinbach

  • Newbie
  • *
  • Posts: 5
Re: IMAP Push stopped working
« Reply #1 on: March 17, 2016, 05:55:11 pm »
I apologize for my lack of clarity and my limited understanding of the various protocols involved.  My email account is hosted on an Exchange server, but it can be accessed using IMAP (including push notification).  This is how I have always done it with other mobile clients and it works great.  I presumed the 'Enable IMAP Push' option available in the settings for the Exchange account I set up in AquaMail would be doing the same thing.  Is that not the case?

jared.leinbach

  • Newbie
  • *
  • Posts: 5
Re: IMAP Push stopped working
« Reply #2 on: March 18, 2016, 09:39:48 pm »
Perfect!  Thanks for the feedback.  This works great, but of course leaves me in email only mode vs. email, calendar and contacts via the Exchange (EWS) approach.  I'm testing to see battery impact when using Exchange (EWS) and scheduled sync at 5 minute intervals.  That might be the solution for me.  I know this get's asked a lot, so my apologies for asking it yet again, but... is there any sense of when push will be available for Exchange (EWS)?  It would be the clincher for me on an absolutely awesome app.  Thanks again.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP Push stopped working
« Reply #3 on: March 18, 2016, 10:17:23 pm »
I'd like to have it, but it's quite difficult (and not just purely in terms of technology, there are other factors).

And so, I can't give an estimate. I would be happy to have it yesterday, or tomorrow, but that's not going to happen.

And being the only developer, and having to spend half of every day on support -- I'm sure from the outside it looks like I just sit on the couch and drink beer all day.
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/

jared.leinbach

  • Newbie
  • *
  • Posts: 5
Re: IMAP Push stopped working
« Reply #4 on: March 19, 2016, 12:19:59 am »
Understood.  And thank you for the response.  Actually, from the outside it looks like you single-handedly created a mail app that blows every other mail app away.  ;)  AND provide amazing support along with it.  Thank you for all of the above!

In the meantime scheduled sync every 5 minutes doesn't seem to destroy my battery life, and I'm thinking the world can survive having to wait up to 5 minutes for me to receive my work emails.

For what it's worth, I use AquaMail for my work email/contacts (Exchange hosted with IMAP capability for email) and GMail for my personal email/contacts.  I like to keep those worlds separate.  My current setup using AquaMail with Exchange (EWS) provides that, and is lacking only in push capability on the work side.

One alternative that seems to also work is to use AquaMail via IMAP to access my work email (which works great by the way), and adding a system level Exchange account for syncing only my work contacts from the same server.  The only downside I see so far is that I have to merge the work contact info into my system level contacts in order to make them available to AquaMail for composing emails.  It's a case of my contact worlds colliding, but I get push back on the work front in return. 

I mention all this just in case it is of use to anyone else in a similar situation.

Thanks again for your help.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP Push stopped working
« Reply #5 on: March 19, 2016, 12:40:10 am »
Quote
use AquaMail via IMAP to access my work email (which works great by the way), and adding a system level Exchange account for syncing only my work contacts from the same server

Yes, that's one way, and people used to do this for Calendar sync before AquaMail supported it.

Quote
downside I see so far is that I have to merge the work contact info into my system level contacts in order to make them available to AquaMail

Yes, correct, Android (Gmail app) would sync your contacts and put them into system Contacts storage.

But wait, are you one of those (few) people who actually *likes* the way AquaMail gives you access to Exchange contacts, but only inside the app?

Something for me to keep in mind when (at some point in the future) I work on "proper" Contact sync (with system Contacts), maybe provide an option?
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/

jared.leinbach

  • Newbie
  • *
  • Posts: 5
Re: IMAP Push stopped working
« Reply #6 on: March 19, 2016, 04:50:56 am »
Quote
But wait, are you one of those (few) people who actually *likes* the way AquaMail gives you access to Exchange contacts, but only inside the app?

Yes I am.  I would have thought there would have been more of me.  Personal email/contacts: GMail.  Work email/contacts: Exchange.  And no desire to comingle the two worlds.  When I send a personal email I don't want to be encumbered by (or have the chance of accidentally selecting) any work contacts.  When I send a work email I don't want to be encumbered by (or have the chance of accidentally selecting) any personal contacts.  In fact, I'll probably stick with the approach of doing a Scheduled Sync every 5 minutes because the complete separation is so perfect for me. 

Quote
Something for me to keep in mind when (at some point in the future) I work on "proper" Contact sync (with system Contacts), maybe provide an option?

I agree that as the implementer of an account that syncs contacts 'proper' contact sync probably is the way it should be done .  As long as you keep the tab based separation by account then folks like me would be fine with it on the AquaMail side.  The problem for me with that approach is that I wouldn't be able to separate the Exchange contacts out of the list that the GMail app provides (no nice tabbed separation like AquaMail).  What would really be best is for every app that presents contacts to provide a setting for the selection of the source account(s) to include (and perhaps the option to have them each on separate tabs vs all mixed together vs both).  I would tell GMail to just use the Google contacts, and AquaMail to just use the Exchange contacts.

On a final related note... In AquaMail when I start typing a name into the To: field for a new email the match list includes (as expected) contacts from Exchange, Google Contacts, and 'recent addresses' (as I have that setting turned on).  When I instead click to open the built in contact picker and then start typing a name into the Exchange tab the match list includes (as expected) contacts only from Exchange, but *not* recent addresses.  This makes sense as in the latter case I am explicitly asking for Exchange contacts only, but in my case would be helpful to have the recent addresses show up there as well.  Perhaps another setting under Recent Addresses:  Always vs Only in Merged List.  ;)



Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: IMAP Push stopped working
« Reply #7 on: March 20, 2016, 03:24:17 pm »
Re: On a final related note

The contact picker window (if you mean the app's own contact picker window -- there also is a way to bring up the system contact picker) has a separate tab for "recents" (and a separate tab for groups too), so it's just a different UI.

There are no tabs back in the compose window, only room for a single drop-down list, so everything's combined there.
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/

felloffthetruck

  • Newbie
  • *
  • Posts: 14
Re: IMAP Push stopped working
« Reply #8 on: March 21, 2016, 01:08:25 am »
I'm not getting push notifications on a regular Gmail account. Aquamail will only check the email every 5 minutes.
Do I have to set up a regular Gmail account like stated above?

felloffthetruck

  • Newbie
  • *
  • Posts: 14
Re: IMAP Push stopped working
« Reply #9 on: March 21, 2016, 02:07:16 am »
Thank You. I have everything checked as you say but the app will only receive new email every 5 minutes.
I also have scheduled sync checked, is this OK?
I don't know.
« Last Edit: March 21, 2016, 02:09:26 am by felloffthetruck »

felloffthetruck

  • Newbie
  • *
  • Posts: 14
Re: IMAP Push stopped working
« Reply #10 on: March 23, 2016, 02:21:01 am »
Thanks. I have everything checked and still no push notifications from Aquamail Pro. I'm not giving up yet.

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: IMAP Push stopped working
« Reply #11 on: March 23, 2016, 06:19:41 am »
A couple of questions that might help:
1. Are you not getting notifications or actual messages delivered via PUSH?
I.e., if you know that there is a new message in the Inbox (based on the web-interface), - can you see the message in Aquamail, or it will not arrive until the 5-min interval has passed?

2. What Android version (and what phone) are you using?

felloffthetruck

  • Newbie
  • *
  • Posts: 14
Re: IMAP Push stopped working
« Reply #12 on: March 23, 2016, 07:27:54 pm »
The phone I'm using is the new Galaxy S7 Edge from Verizon. I also have a Note 5.
The Note 5 will receive an email instantly while the S7 Edge will take about 5 minutes to receive that same email, both using Aqua Mail Pro.
The gmail app on the S7 will receive the email push notifications just fine as where Aqua Mail does not.
I just don't understand.

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: IMAP Push stopped working
« Reply #13 on: March 23, 2016, 11:27:19 pm »
The phone I'm using is the new Galaxy S7 Edge from Verizon. I also have a Note 5.
The Note 5 will receive an email instantly while the S7 Edge will take about 5 minutes to receive that same email, both using Aqua Mail Pro.
The gmail app on the S7 will receive the email push notifications just fine as where Aqua Mail does not.
I just don't understand.

You haven't explicitly answered if the problem is with not getting messages or notifications about messages. It sounds like it is the former. But it would help if you confirm (see my message above that explains the difference).

You haven't mentioned the versions of the Android on these two phones.
From what I can tell, Galaxy S7 from VZW has 6.01, while Note 5 may have 5.x if you haven't updated it to 6.x in the past 3 months.
6.x ("Marshmallow") has a "doze" mode. My understanding is that if you haven't explicitly excluded AquaMail from being controlled by "doze" mode, that might prevent PUSH from working... It can also prevent the scheduled background sync, but maybe you are lucky, and that type of sync managed towork within the Doze mode maintenance window.
(See e.g. here: http://developer.android.com/intl/ru/training/monitoring-device-state/doze-standby.html )

felloffthetruck

  • Newbie
  • *
  • Posts: 14
Re: IMAP Push stopped working
« Reply #14 on: March 24, 2016, 01:58:32 am »
After looking through my settings again I noticed this is unchecked. Might this be my problem?