AquaMail Forum

English - Android => Development builds => Topic started by: Kostya Vasilyev on July 19, 2016, 11:11:45 pm

Title: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on July 19, 2016, 11:11:45 pm
Push mail for Exchange
Title: Re: Currently in development
Post by: stevealb on July 20, 2016, 02:34:08 am
Push mail for Exchange

Looking forward! 
Title: Re: Currently in development
Post by: Jayrco698 on July 20, 2016, 02:47:02 am
Already the best email app by far. After push, I'd give you 6 stars if there was anything like that. 
Title: Re: Currently in development
Post by: Kostya Vasilyev on July 20, 2016, 10:51:17 pm
Re: After push, I'd give you 6 stars if there was anything like that.

I'll have to ask Google for it :)
Title: Re: Currently in development
Post by: ravikumarhn08 on July 24, 2016, 06:23:51 am
Push mail for Exchange

I am very much excited. I am waiting for this feature only. After this feature, I thought no email app will beat this.
Title: Re: Currently in development
Post by: StR on July 24, 2016, 08:03:13 am
Push mail for Exchange

https://www.youtube.com/watch?v=UqbTLJ0U84M&t=41s

(https://s3.amazonaws.com/lowres.cartoonstock.com/medical-maternity-mothers-baby-pregnancy-pregnancies-lfin654_low.jpg)

 ;)
Title: Re: Currently in development
Post by: Kostya Vasilyev on July 24, 2016, 08:45:11 pm
It's going well, I keep making progress.
Title: Re: Currently in development
Post by: Kostya Vasilyev on July 24, 2016, 09:57:20 pm
Seemingly more issues with Samsung's Smart-something battery optimizer -- than with Doze...
Title: Re: Currently in development
Post by: Kostya Vasilyev on July 31, 2016, 01:16:43 am
Progress update:

Just got it to "work" a couple of hours ago.

- The overall approach I came up with -- really works.

- "Cloud assisted": let's make a new term to cleanly differentiate from TypeMail, MyMail etc.

- Uses GCM + my own cloud servers, but has none of the (perhaps expected) bad effects on privacy

- My cloud servers know nothing:

not the password, not the user's email address, not even the mail server hosting the account

and do not have the technical capability to access the user's emails or log into the user's account

in the unlikely event that these cloud servers get hacked, there is literally nothing there, not even the users' email addresses.

- Testing in Doze Mode looks good so far

- Looks good on Android M/6, should be good on the upcoming N (7?)

- Very low traffic and battery use

- Supports multiple folders with push per account (just like IMAP does now)

- Will be Pro version only (server expenses)

Now I've put "work" above in quotes:

Needs work (sans quotes) on error handling / failure recovery / performance testing / what if the cloud server goes down / what if GCM is unreachable... and a dozen things that I haven't yet thought of.

Cautiously optimistic for a forum-grade development build in a week, maybe, hopefully.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: pyler on August 01, 2016, 08:17:30 pm
Well, it sounds amazing! ;)
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: malespider on August 05, 2016, 05:32:50 am
It's a really good news, but is there any ETC of the new version realeased which has PUSH mail feature?
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: mikeone on August 05, 2016, 02:18:43 pm
It's a really good news, but is there any ETC of the new version realeased which has PUSH mail feature?
What does ETC stand for?
http://www.abbreviations.com/ETC
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: paras.desai on August 05, 2016, 06:54:44 pm
Expected Time is Completion

Sent from my LG-H818 using Tapatalk

Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: paras.desai on August 05, 2016, 06:54:54 pm
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: paras.desai on August 05, 2016, 06:55:26 pm
Of lol

Sent from my LG-H818 using Tapatalk

Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: mikeone on August 05, 2016, 07:19:29 pm
Of lol

Sent from my LG-H818 using Tapatalk
Hi Paras.desai
You could use also the "edit" functionality to modify / correct a previous post:
... on the top right corner of your own posts.

 8) 8)
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: paras.desai on August 05, 2016, 07:22:18 pm
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: mikeone on August 05, 2016, 07:22:29 pm
Expected Time is of Completion

Sent from my LG-H818 using Tapatalk
Yes, I assume that.
However it could be also meant as "Experience The Creativity", or whatever else...  :P
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: paras.desai on August 05, 2016, 07:24:20 pm
Oh.. for Kostya,  that is more appropriate

Sent from my LG-H818 using Tapatalk
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on August 05, 2016, 09:14:08 pm
Re: ETC

As I wrote above -- on July 31 -- "Cautiously optimistic for a forum-grade development build in a week, maybe, hopefully"
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: malespider on August 06, 2016, 11:22:54 am
Got you and thanks!
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on August 06, 2016, 09:23:24 pm
Update:

Things keep moving, and it seems to work pretty good right now.

But one part of the code is so far for Android 5.0+, and needs to be implemented to support Android 4.0-4.4 too.

I'll be needing a few more days for this.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on August 09, 2016, 10:32:09 pm
It's quite likely that an "early access, forum-grade build" should happen tomorrow, Aug 10.

Fingers crossed, back to code one last thing...
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: deltatyger on August 10, 2016, 11:44:17 pm
It's quite likely that an "early access, forum-grade build" should happen tomorrow, Aug 10.

Fingers crossed, back to code one last thing...
Cannot wait!!

Sent from my ONEPLUS A3000 using Tapatalk

Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on August 11, 2016, 02:31:09 am
Just when I was ready, *both* my Internet connections went down for two hours...

Posted:

http://www.aqua-mail.com/forum/index.php?topic=4908.0
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: hzamora on August 11, 2016, 07:14:16 pm
Hello Kostya,

I installed this version, it is working fine, messages are received very fast but the notifications are not working.

Maybe I have done something wrong, but I don't find the solution.

Regards.

Hector Zamora
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on August 11, 2016, 07:20:29 pm
Hektor,

Re: messages are received very fast

Very good! :)

Re: notifications

I'll take a look, thanks.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: hzamora on August 12, 2016, 06:51:38 am
Thanks Kostya,

Notifications are working fine.

I like this new version, last week when the app was working with IMAP/ Office 365 was not stable.

Excellent job. Regards.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on August 12, 2016, 11:43:42 pm
Thank you for your feedback @hzamora

So I guess -- overall, it seems to work (except for a few issues)?

Good news. I'm in the process of preparing to take it to the next step -- which is a Google Play "beta".
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 15, 2016, 12:26:49 pm
Hello,
any news about OWA Exchange mail push?
the application is really amazing, but push notifications on my business account exchange server are not working..or better I have to update manually or by setting a refresh rate ( and then not push mode )
Thank you
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: StR on September 15, 2016, 03:16:33 pm
Hello,
any news about OWA Exchange mail push?
the application is really amazing, but push notifications on my business account exchange server are not working..or better I have to update manually or by setting a refresh rate ( and then not push mode )
Thank you

First, to make sure we are on the same page:
"Microsoft Exchange enables users to access and manage their email online through the Outlook Web Access (OWA) interface." (From MS Support pages).
So, OWA is completely separate from Android apps, Aquamail in particular.
Aquamail is using "EWS" (Exchange Web Services)

Currently, Exchange PUSH is available in Aquamail in the Google-Play "beta".
Alternatively, you can install it using the link in this thread:
http://www.aqua-mail.com/forum/index.php?topic=4976.0
If you install it from this link, you'll be able to update with the new version in Google Play without any problem.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 15, 2016, 10:40:05 pm
I believe K9 Mail uses OWA as its "transport" (protocol) but other than that... It's also deprecated since 2007 and not supported since 2010.

So yeah, there is nothing wrong with Aqua using EWS as its "transport" for Exchange, works from Exchange 2007SP1 onward.

And yes, a version with push for Exchange is available here:

https://play.google.com/apps/testing/org.kman.AquaMail

Or here on the forum under "Development builds".

( @StR, thank you again )
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: StR on September 15, 2016, 10:48:01 pm
I believe K9 Mail uses OWA as its "transport" (protocol) but other than that... It's also deprecated since 2007 and not supported since 2010.
Mea culpa. I didn't know that OWA is also a transport protocol.
Thanks for the correction, - it's always nice to learn.

PS. @Kostya, it's nice to see you back.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 15, 2016, 10:51:26 pm
Quote
Mea culpa. I didn't know that OWA is also a transport protocol.
Thanks for the correction, - it's always nice to learn.

Not sure if it was ever intended to be, or if K9 essentially does "web scraping" of HTML that's intended to be consumed by web browsers and seen by users -- in any case, it's no longer an option, from what I understand, since Exchange 2010 :)
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 16, 2016, 07:43:57 pm
Currently, Exchange PUSH is available in Aquamail in the Google-Play "beta".
Alternatively, you can install it using the link in this thread:

If you install it from this link, you'll be able to update with the new version in Google Play without any problem.

Hi,
i tried this version, but if I do not manually update the exchange account emails does not arrive or better...emails arrive after a long time, because in synchronization / "message tracking every" It is set to 15 minutes..
Push email is enabled at my Inbox folder level, and in settings / synchronization / Push message..
 :-[ :-[
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: StR on September 16, 2016, 08:39:31 pm
I haven't tried Push for Exchange (so, I haven't used the newest version myself), - but if the configuration interface is similar to that for IMAP Push, there are actually three (3!) places where you need to enable Push:
1. Overall app level settings (3-dot menu from the account view )
2. Account settings (long press on the account in the account view -> options and folders)
3. Inbox (folder properties)
From your description, I suspect (2) might not be enabled.

You haven't mentioned what you phone model and Android version is.
While I don't know all the details of the Exchange Push implementation, but I think it might still be subject to the problem cause by "battery optimization". "Battery optimization" can be happening (a) at the Android level (6.0+) - so called "Doze" mode, (b) specific OEM extension (e.g. Samsung, Huawei, etc...), or (c) a 3rd-party application. In all three cases, you need to add Aquamail to the whitelist to exclude from "being optimized". That optimization simply disables apps from working.
See the FAQ item "Persistent network errors or the app not checking mail, MIUI, Huawei" in the Aquamail FAQ http://www.aqua-mail.com/?page_id=227
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 16, 2016, 09:43:46 pm
Doze Mode should not be a problem, based on my tests (my Exchange push implementation is able to use GCM).

But yes, push mail needs to be enabled, best to check all three places.

If the account gets checked every 15 minutes, then it's probably not one of those magical MIUI / Huawei / Clean Master issues.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 17, 2016, 12:41:07 am
Sorry for delay..
I beg your pardon but we are on the wrong way..
Here i posted my phone ad O.S.
(http://i66.tinypic.com/2gvv3er.jpg) 

the three places where i tap push..(and honestly i do not know where else to plug push... :D)
(http://i64.tinypic.com/mblok3.jpg) (http://i66.tinypic.com/2gwxthd.jpg)  (http://i68.tinypic.com/211t2rq.jpg)

and the last picture is default setting for checking mail (not push!)..i can change in 5 minutes but it's not the same (push)
(http://i65.tinypic.com/14e8d4o.jpg)

it may be helpful I tried to download the app from Google Play NINE and it works very well with my Exchange account in push (it's instantaneous mode)
But they do not accept POP3 and IMAP...and I'm owner of 3 IMAP account..so for me Aquamail would be the best

if you want I can be a guinea pig.......but we need to resolve this issue Please.

Thank you
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 17, 2016, 12:43:08 am
@rossomike1966

Please go into AquaMail settings -> debug -> find and post the value under "Exchange push device ID" (last item).

I'll look it up on my server.

And what is the server, by the way? Office 365? Something else?
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 17, 2016, 12:56:29 am
@rossomike1966

Please go into AquaMail settings -> debug -> find and post the value under "Exchange push device ID" (last item).

I'll look it up on my server.



(http://i64.tinypic.com/w1utzl.jpg)

and what do you mean when you say "And what is the server, by the way? Office 365? Something else?" My server?
It's a corporate exchange server (the bank where I work has provided me with credentials to access with Android)
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 17, 2016, 01:00:20 am
Thanks.

Checked my server logs -- looks like your bank's Exchange configuration does not allow the particular push technology (so called "push subscriptions") which is used by AquaMail for push mail.

It's a standard Exchange feature since 2007, but I suppose it can be blocked / turned off by your company's "computer people".

If you can let me know the actual server name (in the account's incoming server settings) -- privately by email to kmansoft / gmail -- I'll check one other thing.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 17, 2016, 01:08:35 am
@rossomike1966

Yep. Your corporate server is supposed to "call" my server and notify it about changes in your Inbox.

It doesn't. It never ever happens.

And so I have to conclude that your bank's "computer people" have blocked the particular Exchange technology which AquaMail uses for push mail.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 17, 2016, 01:11:14 am
So... :-[..no solutions?
why my bank server works well with NINE app?
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 17, 2016, 01:16:12 am
There are different ways to implement push mail for Exchange.

Looks like your bank "...blocked the particular Exchange technology which AquaMail uses for push mail"

but did not block the Exchange technology used by Nine.

PS - you're the second user from Italy whose Exchange server is this way. Wonder if there is some book -- "how to set up Exchange in 5 easy steps" -- that's been translated into Italian...
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 17, 2016, 01:23:06 am
I hope that in the future your app can also use this technology..I'm so sorry to give up aquamail
thank you very much for your cooperation
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: mikeone on September 17, 2016, 04:29:24 pm
I hope that in the future your app can also use this technology..I'm so sorry to give up aquamail
thank you very much for your cooperation
Of course you have a second option:

Ask your company's "computer people" to activate / turn on the push technology (so called "push subscriptions") in the bank's Exchange configuration.

As explained by Kostya, it's a standard Exchange feature for push mail since 2007:

EWS Push Notifications
<< https://msdn.microsoft.com/en-us/library/office/dn458791(v=exchg.150).aspx >>
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 17, 2016, 07:49:16 pm
BTW, Nine is able to implement push because it uses ActiveSync (not EWS) to connect to Exchange.

But I believe that ActiveSync is going to be affected by Doze Mode, same as IMAP push, so as time goes on, it'll still work, but probably not as well as it did before.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 18, 2016, 10:24:26 am
Of course you have a second option....

You say that..because perhaps..you don't work in a bank..it's really difficult to do what you ask... :'(
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: rossomike1966 on September 18, 2016, 10:28:56 am
BTW, Nine is able to implement push because it uses ActiveSync (not EWS) to connect to Exchange.

But I believe that ActiveSync is going to be affected by Doze Mode, same as IMAP push, so as time goes on, it'll still work, but probably not as well as it did before.

I understand that you will not develop ActiveSync for your app..
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: mikeone on September 18, 2016, 12:10:04 pm
Of course you have a second option....

You say that..because perhaps..you don't work in a bank..it's really difficult to do what you ask... :'(
Yes, I'm aware of the situation in a bank. However, it should be worth asking your colleagues from the IT-Department particularly whether it will be possible to enable 'push notifications' (or even not)
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: mikeone on September 18, 2016, 12:25:15 pm
BTW, Nine is able to implement push because it uses ActiveSync (not EWS) to connect to Exchange.

But I believe that ActiveSync is going to be affected by Doze Mode, same as IMAP push, so as time goes on, it'll still work, but probably not as well as it did before.

I understand that you will not develop ActiveSync for your app..
In short:
Correct, AquaMail does not and will not support ActiveSync.

The reason for Kostya to go with EWS (Exchange Web Services) you will find in various threads here in the forum, e. g.:

08. September 2014
ActiveSync vs.  EWS - not so clear cut
http://www.aqua-mail.com/forum/index.php?topic=2746.msg12162#msg12162

09.01.2015
Let's discuss: push mail for Exchange
http://www.aqua-mail.com/forum/index.php?topic=3195.msg15438#msg15438

You will find more discussions on this by using the forum search with keywords "ActiveSync EWS license"...
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 18, 2016, 10:00:59 pm
Correct.

I am not going to implement ActiveSync.

There is nothing wrong with using EWS, and the push implementation is fine too.

It's unfortunate that the bank blocked "EWS push notifications", but then -- they could have blocked all apps except some small number of "officially approved" ones, or could have blocked access from mobile devices, or access from outside the corporate network, ....

No matter what I do, there are always going to be cases where "the company", which holds all the cards, can do "something" to prevent my app from connecting to "their" corporate email.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: arbit12 on September 22, 2016, 08:18:23 pm
Correct.

I am not going to implement ActiveSync.


Thanks. That's a relief. ActiveSync, or at least the versions used by most apps, is restricted compared to EWS. The only trade off I have found is the lack of push, which for me is easily handled by keeping a shorter refresh.

Good to know my shared folders access and calendar on Aquamail is safe. And that we wont be getting a truncated version of contact details down the line. ☺


Sent from mTalk
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: dcortez on September 23, 2016, 05:37:09 am


...... there are actually three (3!) places where you need to enable Push:
1. Overall app level settings (3-dot menu from the account view )
2. Account settings (long press on the account in the account view -> options and folders)
3. Inbox (folder properties).....

Blam! I completed step 3 and push worked immediately. @StR...Thanks for posting this!

Sent from my SM-T715Y using Tapatalk

Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on September 23, 2016, 09:10:06 pm
When adding a new account, for IMAP and EWS, there is a checkbox right on the final screen ("save account") to enable push.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: dkmackie on December 06, 2016, 06:04:40 pm
I am new to AquaMail and I am having difficulty getting EWS working with my email system. Are there any setup instruction other than the ones in this thread that describe all steps needed to get this working?

I am on a production release of AquaMail and not a development version.
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on December 06, 2016, 06:13:00 pm
@dkmackie

Basically, if the app is not able to guess the right server settings, please tap the Manual button (after entering your email and password) and you'll be able to enter them yourself.

If in doubt, please ask your company's IT people:

- Whether the corporate server supports EWS (Exchange Web Services), this is what Aqua Mail uses to connect to Exchange.

An official part of Exchange since 2007, should be enabled by default, but sometimes is disabled for various reason.

- If it is enabled, what the server settings are (server name is the most important).

For Office 365 (even if it's under your company's domain), please use server name outlook.office365.com (and the rest is default, SSL encryption, port 443).
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: StR on December 06, 2016, 07:44:17 pm
I am new to AquaMail and I am having difficulty getting EWS working with my email system. Are there any setup instruction other than the ones in this thread that describe all steps needed to get this working?

I am on a production release of AquaMail and not a development version.

Are you talking about EWS or EWS Push? (The question is posted in the thread that is about Push for EWS. Hence the clarification request.)


If you are talking about EWS Push, I believe the key is in this last, underlined, sentence. If by "production" release you mean the one in Google Play, - it doesn't support EWS Push yet. It is available in -dev versions, starting with some , I believe, 1.6.4.*-dev
For sure, 1.7* all support EWS Push. Support for EWS Push is available only in the paid ("Pro") version.

(Note that should you install a -dev version, once the new version will be released in Google Play, you could update to that as usually.)
Title: Re: Currently in development - push mail for Exchange - July 31 update
Post by: Kostya Vasilyev on December 06, 2016, 09:10:49 pm
Re:  It is available in -dev versions, starting with some , I believe, 1.6.4.*-dev

It's also available in Google Play but it's necessary to "opt in" for it:

https://play.google.com/apps/testing/org.kman.AquaMail

But we don't really know what the OP meant by "having difficulty getting EWS working", exactly...