Author Topic: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"  (Read 11871 times)

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
https://www.aqua-mail.com/download/AquaMail-market-1.6.4-dev1.3.apk

In Google Play as "beta" version.

В Google Play как "бета" версия.



Copying the list of changes so I can link from Google Play (beta):

Exchange mail:

- When you bring up "other folders" or "move to folder", the list of folders is now synced incrementally, only changes since last time. Faster, lower battery and traffic usage.

( "options and folders" -> "folders", aka "manage folders" still does a full sync, in case there are any issues with incremental sync )

- Exchange accounts now support a date-range-based "messages to sync", e.g. "last 10 days" or "last 30 days", etc.

The default for new Exchange accounts is now "sync last 14 days".

This sync algorithm is incremental too. May take some time for the initial sync (just how Exchange is...) but after that it will only get changes since last time. Faster sync, lower battery and traffic usage.

- If you use the old "sync N most recent messages", the app is now able to quickly detect, per folder, when there are no changes since last time. Faster, lower battery and traffic usage.

- Push mail for Exchange.

Requires Google Play Services (Google Cloud Messaging).

In Pro version only.

Uses a "cloud server", does not compromise on privacy, let's call it "cloud assisted" not "cloud based".

The "cloud" has no technical capability to access your emails, does not know your account's password or the account's email identity, not even temporarily.

The only information that "passes through" this "cloud server" and then Google's servers is made of abstract identifiers, like this:

Quote
Folder e5ad981e09408394ae18363147c6ea7a5b664997 just had a change

It belongs to AquaMail on device ab9fcfa3e001c73f2c1d118bb1daa597e64bffec

Whose Google identifier is:

cmSMMz3InWA:APA91bFRy_XTSWvqSMctWF70LAPDtR8BYZ0gjjG6YPvJdbaOAcNxntGqvYuSB9E90tCKkyzk9EaoOMZp5JSCjbh1NcclWEKMz6NGV8fMz-7Ktz7huxKOcq19QrYrRjcfcbsPnU9wO7V3

This is broadly the same approach as used in Signal messenger by Whisper Systems:

http://support.whispersystems.org/hc/en-us/articles/213190817-Why-do-I-need-Google-Play-installed-to-use-Signal-

IMAP:

- A few changes / fixes / improvements (hopefully) to push mail too, esp. on Android 6.0+.

- The "Push mail on Wifi only" setting has been moved from app settings to per-account "options and folders" -> "account options".

Translations:

- There is aboout a dozen new items. Let's wait a little for the dust to settle just in case there are more UI changes.



Копирую заново чтобы сделать ссылку из Google Play (беты).

Почта Exchange:

- При вызове списка папок для "перемещения сообщения" или чтобы "открыть другую папку", синхронизация списка папок с сервером теперь только получает изменения "с прошлого раза". Быстрее, меньшее потребление батараейки и сетевого трафика.

( если вызывать экран "доп. настройки и папки", он же "управление папками", то будет выполнена полная синхронизация списка папок, на всякий случай )

- В учётках Exchange теперь есть "загрузка по интервалу времени", то есть "10 дней", "30 день" сообщений, и т.д.

По умолчанию для новых учёток Exchange используется "14 дней".

Алгоритм синхронизации "по интервалу времени" получает только изменения. Первая проверка почты может занять какое-то время (особенность Exchange...), после этого будет заметно быстрее чем раньше. Быстрее, меньшее потреблением батарейки и трафика.

- Если Вы будете продолжать использовать "загружать N сообщений" (по количеству, а не по интервалу времени), то программа теперь может определять папки где не было изменений и пропускать их. Быстрее, меньшее потребление батарейки и трафика.

- Пуш почта для Exchange

Требуются Google Play Services (Google Cloud Messaging)

Только в полной версии программы.

Использует "облачный сервер", но не компрометирует личные данные, пусть называется "воспомогательной облачной технологией".

Эта "воспомогательная облачная технология" не имеет технической возможности доступа к Вашим письмам, не знает ни пароля ни даже адреса Вашей учётной записи, даже временно.

Через сервер (и затем через Google) проходят только абстрактные идентфикаторы, примерно вот так:

Quote
В папке e5ad981e09408394ae18363147c6ea7a5b664997 что-то поменялось

Эта папка принадлежит устройству ab9fcfa3e001c73f2c1d118bb1daa597e64bffec

А Google-идентификатор этого устройства вот такой:

cmSMMz3InWA:APA91bFRy_XTSWvqSMctWF70LAPDtR8BYZ0gjjG6YPvJdbaOAcNxntGqvYuSB9E90tCKkyzk9EaoOMZp5JSCjbh1NcclWEKMz6NGV8fMz-7Ktz7huxKOcq19QrYrRjcfcbsPnU9wO7V3

Это примерно та же архитектура, что используется в мессенджере Signal компании Whisper Systems:

http://support.whispersystems.org/hc/en-us/articles/213190817-Why-do-I-need-Google-Play-installed-to-use-Signal-

IMAP:

- Несколько изменений / исправлений / улучшений (надеюсь) в пуш-почте, особенно для Андроида 6.0+.

- Настройка "пуш почта только через WiFi" переместилась из настроек программы на уровень учётной записи, "доп. настройки и папки" - "доп. настройки"
« Last Edit: September 05, 2016, 12:59:14 am by Kostya Vasilyev, Aqua Mail »
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/

stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #1 on: August 29, 2016, 07:24:39 pm »
There seems to be a lot of data moving in this version and increased battery usage. Has anyone else noticed an increase in data usage and battery consumption?

Finferlo

  • Jr. Member
  • **
  • Posts: 87
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #2 on: August 29, 2016, 07:27:03 pm »
There seems to be a lot of data moving in this version and increased battery usage. Has anyone else noticed an increase in data usage and battery consumption?

The same for me...

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #3 on: August 29, 2016, 11:03:51 pm »
Re: seems to be a lot of data moving in this version and increased battery usage

Hmmm... there is?

How many folders do you have in push mode? How often does something happen there (i.e. a new message, mark read/unread, etc.), every few minutes?

Is Exchange push working for you?

Can you please try turning off the new push mail at the account level and keep the "messages to sync" at same "date range value" as should already be there?

@Finferlo

As we've discovered from your debug log, AquaMail's push for Exchange will not work for you because it's blocked (presumably) by your company's IT department.

Therefore, can you please turn off push for this Exchange account to see if this changes things?
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/

stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #4 on: August 29, 2016, 11:27:31 pm »
@Kostya: How many folders do you have in push mode? How often does something happen there (i.e. a new message, mark read/unread, etc.), every few minutes?

I am syncing 3 folders: 1 inbox, sent, and drafts. This hasn't changed since I'm using AM, which is more than a year.


@Kostya: Is Exchange push working for you?

Yes, the Push is working well. It's just using a lot of battery and moving more data than usual. Nothing has changed in my usage. The only thing that changed is the AM version to include Push. Previously, I had Tasker trigger AM to check mail anytime I received a Push email from Nine. Essentially, making AM seem like it was pushing email. I'm using more data now without Tasker running and just having AM push email.

@Kostya: Can you please try turning off the new push mail at the account level and keep the "messages to sync" at same "date range value" as should already be there?

Ok. Done. What am I looking for?

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #5 on: August 29, 2016, 11:39:11 pm »
Re: I am syncing 3 folders: 1 inbox, sent, and drafts. This hasn't changed since I'm using AM, which is more than a year.

All with push enabled? Or just the inbox (the default)?

What has changed is that previously the app would only sync changes every 15 minutes or so -- now with push, it catches up to server changes as they happen, this is what push is.

That being said, push mail uses incremental sync (only pulls in actual changes), but it will trigger more often, esp. with your heavy mail traffic.

Re: Ok. Done. What am I looking for?

Now that push mail is off, the app is back to checking mail every 15 minutes (as opposed to catching up to server changes as they happen, which is more often).

Let's see what happens to traffic and battery usage.

And one more thing:

Please go into AquaMail settings -> debug -> "Exchange push device id".

Tap that item to copy the ID to the clipboard, and please either post here or shoot me an email (kmansoft / gmail).

Once I have that, I'll take a look at my *server* logs.
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/

stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #6 on: August 30, 2016, 01:11:13 am »
All with push enabled? Or just the inbox (the default)?
- Just the Inbox is push.

Let's see what happens to traffic and battery usage.
- I'll let it go like this for a couple of hours, but I can see already that the @ sign in the notification area does not show downloading attachments when the email is pulling every 15 minutes. When in push mode, the @ sign was often showing in the notification area when email arrived and the notification said downloading attachment.

And one more thing:

Please go into AquaMail settings -> debug -> "Exchange push device id".

Once I have that, I'll take a look at my *server* logs.

- Exchange push device id:
a8a5d1eedff8d33e1e6958e0518aa37288ed95a9


stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #7 on: August 30, 2016, 05:10:42 pm »
See the picture below of the data use of AM using push with the phone on for just 4 hours.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #8 on: August 30, 2016, 10:48:55 pm »
Re: See the picture below of the data use of AM using push with the phone on for just 4 hours

Pretty low  "stay awake" time -- this is how much the app actually spent working and keeping the phone awake.

Pretty low traffic -- 12 kilobytes sent, 27 kilobytes received (if I'm reading this right, but there is no unit next to those numbers, so I'm assuming bytes).

Now the bad part -- high "total connect time".

This is Android keeping the phone's cell modem hardware awake and in a high power state long after it's no longer needed.

What Android version is this? The issue first surfaced in 5.0, affecting a lot of apps, including Google's own.

Can you please take a look at the FAQ and search the page for "battery"?

http://www.aqua-mail.com/?page_id=227
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/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #9 on: August 30, 2016, 10:56:38 pm »
Quote
Once I have that, I'll take a look at my *server* logs.

- Exchange push device id:
a8a5d1eedff8d33e1e6958e0518aa37288ed95a9

Looking at a time period from "now" (~11pm in Moscow -> 8pm GMT) to about a hour back (~7pm GMT), there are server changes coming at a high rate, sometimes about once a minute, sometimes even more often than that.

AquaMail's push for Exchange is very economical when there are no changes (compared to IMAP push, which has to actively maintain a connection to the mail sever). But when there are changes, it has to catch up every time, this is what push mail is.

If you want to try disabling push for folders other than the inbox, it should help, since it won't be catching to changes in those other folders every time (only once every 15 minutes). Think you'd mentioned having 4 folders in push mode.
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/

stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #10 on: August 31, 2016, 12:04:53 am »
Pretty low traffic -- 12 kilobytes sent, 27 kilobytes received (if I'm reading this right, but there is no unit next to those numbers, so I'm assuming bytes).

- It's 12MB (~12000K) and 27MB.

Now the bad part -- high "total connect time".

What Android version is this? The issue first surfaced in 5.0, affecting a lot of apps, including Google's own.

- Android 6.01 on the Samsung S7 Edge.

stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #11 on: August 31, 2016, 12:06:22 am »
If you want to try disabling push for folders other than the inbox, it should help, since it won't be catching to changes in those other folders every time (only once every 15 minutes). Think you'd mentioned having 4 folders in push mode.

- only inbox is push. The other 3 are just synced.

AM on push for exchange has definitely upped my battery consumption from 5.5%/hour to over 10%/hour. Not good.
« Last Edit: August 31, 2016, 12:08:16 am by stevealb »

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #12 on: August 31, 2016, 12:23:04 am »
Re: - It's 12MB (~12000K) and 27MB.

Hmm... If that's what is really is, then yes, that would be insane over 4 hours.

FWIW, I can't get the numbers of that screen to update at all on my S6 Edge.

Re: 5.5%/hour to over 10%/hour. Not good

Yes, this is very high.

Well, debug log please? Something like 2-4 hours should be enough.
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/

stevealb

  • Full Member
  • ***
  • Posts: 144
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #13 on: August 31, 2016, 12:34:22 am »
Well, debug log please? Something like 2-4 hours should be enough.

- Will do. Thanks

aquatix

  • Newbie
  • *
  • Posts: 5
Re: Version 1.6.4-dev1.3 - "work in progress" - Google Play "beta"
« Reply #14 on: August 31, 2016, 12:01:20 pm »
Hi all, running this build on my Nexus 6P with Android 7, and it seems the notifications aren't respecting my settings regarding the action buttons anymore: I just get the default 'Reply, Mark Read, Delete' buttons, instead of my custom configuration.

Is this a bug? It worked just fine when I was still on Marshmallow.