Author Topic: phone still shows new message after reading on gmail/computer  (Read 7459 times)

christopherd50

  • Newbie
  • *
  • Posts: 5
When I read an email from my actual gmail account on my computer my phone will still show that I have a new message. It takes a while before it realizes the message has already been read. However, when I go to Aqua mail on my phone and refresh the mail it will show as read. Is there any way to fix this?

christopherd50

  • Newbie
  • *
  • Posts: 5
Re: phone still shows new message after reading on gmail/computer
« Reply #1 on: April 18, 2013, 02:08:34 am »
Any ideas???

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: phone still shows new message after reading on gmail/computer
« Reply #2 on: April 18, 2013, 02:33:22 am »
If the "awhile" is about 5 minutes, that's normal -- Gmail does not push message state changes (read/unread, starred, etc.), it's known since 2007, and they have no plans to fix it.

If it takes longer, especially much longer, that's not normal.
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/

christopherd50

  • Newbie
  • *
  • Posts: 5
Re: phone still shows new message after reading on gmail/computer
« Reply #3 on: April 18, 2013, 02:42:08 am »
What's interesting is it deletes off my ipad instantly. My ipad is set up as an exchange however. Would that make a difference?

christopherd50

  • Newbie
  • *
  • Posts: 5
Re: phone still shows new message after reading on gmail/computer
« Reply #4 on: April 18, 2013, 02:44:50 am »
Also, when I auto refresh the unread emails change to read.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: phone still shows new message after reading on gmail/computer
« Reply #5 on: April 18, 2013, 02:48:05 am »
I understand that Gmai's Exchange (ActiveSync) implementation is actually more complete than IMAP IDLE, maybe it includes message flags.

For new messages and deletions, though, their IMAP does push notifications almost instantly, and they should be reflected in my app as well. The five minutes timeframe is for state changes only.

If it takes longer (or very long) in AquaMail to get new messages, from Gmail, when using IMAP push... I could investigate if you recorded a debug log, as described here:

http://www.aqua-mail.com/?page_id=232

"Raw data" can be kept off, and it would be great to reboot the device after enabling logging (and to note the approximate time when the app starts falling behind).

As for hitting refresh - well, that does a "pull" sync immediately, so new (updated) message states are refreshed 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/

christopherd50

  • Newbie
  • *
  • Posts: 5
Re: phone still shows new message after reading on gmail/computer
« Reply #6 on: April 18, 2013, 02:51:34 am »
As of right now it has been 15 minutes and the emails are still showing "unread". New messages push instantly and when I delete messages from gmail they delete on Aqua Mail instantly. Am I able to setup an exchange?

jcasares

  • Full Member
  • ***
  • Posts: 245
Re: phone still shows new message after reading on gmail/computer
« Reply #7 on: April 18, 2013, 08:08:05 pm »
Am I able to setup an exchange?
Not yet. Protocol not supported and anyway Google is giving up on Exchange protocol in a few months.

http://www.intomobile.com/2013/01/30/google-extends-exchange-activesync-cutoff-date-windows-phone/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: phone still shows new message after reading on gmail/computer
« Reply #8 on: April 19, 2013, 03:21:51 am »
Chris,

Could you record the app's debug log, for an hour or so?

If new messages and deletes are pushing through, it means my app's connection to the Gmail server is alive and well.

But as far as message flags go... sorry if it's going to be a bit more info than you might have wanted, but the story is:

- Gmail does not send changes to message flags over IMAP IDLE. I've seen a mail / newsgroup / forum exchange from 2007 where a Google engineer is saying "the spec doesn't *require* us to implement it, so we didn't and we won't" (a little silly oversight -- or intentional decision to support the native Gmail app? you decide).

- On the other hand, Gmail sends "keepalive" messages every five minutes, basically an "I'm still here" type of thing... Which I use as an opportunity to update the flags of recent messages (including the read/unread states).

- And yet, I've seen debug logs from users where Gmail was *not* sending those keepalive messages... Without them, my app doesn't have any trigger at all to sync flags.

If you wanted me to investigate this further, I could, if you recorded a debug log, at least 3-4 hours long, which would include messages changing their read / unread states.

http://www.aqua-mail.com/?page_id=232

One other suggestion is to decrease the "IMAP Push session duration" from 1 hour to 30 minutes, this is under "Account options", then "IMAP, other". This will make the app resync message flags every 30 minutes or so.
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/