[Q] Exchange with Stock Android: Push Connection - Android Q&A, Help & Troubleshooting

When using the stock email client (more specifically, CM10.1) and adding an Exchange account, I experience the following behaviour:
In the synchronization intervall settings, when I choose "Push", I get the expected behaviour: everything arrives "instantly" when it is created, be it a contact, a calendar entry or an e-mail.
But, when I change the intervall to let's say 4 hours, only E-Mail requests are executed every 4 hours, while everything else is still using push (calendar, contacts...). This effectively means that there is no real benefit to changing the synchronization intervall when it comes to saving power, because the push connection is kept open anyway.
Samsung stock software does this differently: if you set the intervall to 4 hours, everything is grabbed at that intervall and no connection to the server is kept open.
Is the CM10.1/AOSP behaviour intended?

Related

ActiveSync/Exchange Sending multiple copies of email

Hi,
After an upgrade (No2Chem 3.49 Radio 3.42.40) everything works really great!!! Except, I am having an issue with ActiveSync.
Intermittently, (sometimes every 3 seconds, sometimes every 10 minutes), a blank window covers the whole screen with a title of "ActiveSync" and an "ok" in the upper right corner. If I click ok, the ActiveSync main window appears. I believe everytime this happens, it is resending all of the email in my outbox and the message never gets removed from the outbox even though it is delivered to the recipient.
ActiveSync works fine with PC via USB and for all features besides the email. Also, SMS and Gmail correctly clear the inbox and send only the single email (this is what makes me think it is the ActiveSync).
TIA,
Brian.
I have seen that with the MR1 ROM while ActiveSync is doing its first sync with a large mailbox. (I've got a couple thousand messages from the past month that sync via Exchange.)
I've noticed intermittantly unreliable behavior of the Exchange mail client while it's still cranking away at the initial sync (failing to set message read flags server-side, to be specific).
Regardless, though, things worked fine for me after ActiveSync finished the big initial sync run.
Thanks Skywing,
That doesn't appear to be the case. I only have ~20 emails trying to sync. I did try re-flashing as well as reinstalling AS to no avail.
FYI to all --
I did just come across this thread on MS Mobile support forums...
https://forums.microsoft.com/window...1&siteid=65&sb=0&d=1&at=7&ft=11&tf=0&pageid=0
It appears that this is an issue with Exchange 2007 and WM6.1. It looks like there is a hotfix that needs to be installed on the server side (which I don't have control over). There is a chance this isn't the issue, but it certainly sounds like all of the same symptoms. Unfortunately, there is no apparent client-side fix.
-Brian.

Battery drainage during flightmode

Good morning xda-users.
ive got a questions - as already mentioned in topic - concerning battery drain during flightmode.
As everbody knows in flightmode all connections are off, which can save a bit of battery.
But what about programms, that are configured to get information over and about the connection. E.g. email sync every 2 hours from 2 imap accounts, time sync and especially WMLonglife which I configured that it cuts off the internet connection when its 60 seconds in idle -> so WMLonglife have to check every 60 seconds if programm is using the internet connection, if not wmll disables the connection.
would it be worth to disable that processes over night or wouldnt it be worth concerning battery drainage.
greetz Jan
For the email, you can just adjust the off-peak times so that emails are not checked at night.
I'm not sure if your question was regarding not running wmll at night so that it doesn't drain the battery when it runs it's checks? If that is the case then I don't think you have anything to worry about as I don't think that it checks every 60sec, as that would be wasteful. I'm guessing instead it only checks if the data connection is active, so if data is off, it doesn't do anything. Also, I'm guessing that the way it checks for data, it barely adds any drainage whatsoever; you might want to ask the app developer the specifics there.
Thanks for ure reply, regarding email retrieval times...didnt find an option to configure a timespace when I want to receive the mails...As mentioned im using 2 imap accounts...earlier when i was using pop3 accounts like hotmail there was an option to confgure it...
Last night I disabled alle data connections at wmll: lost 2% of battery.
Two days ago with email syncing every 2 hours, time syncing, facebook syncing, wmll ive lost 6% in flightmode.
I think I will code an programm for me, which disables the useless data services during flightmode.
Thanks anyway
greetz jan

Exchange bug?

Set up my works Exchange account on the S3 and suspected it was causing high battery drain.
Selected some 'sleep time' from within the application and then also selected Manual Update so I could save battery. It appears manual doesn't change anything though as my mail still comes through unless I deactivated the account completely?
Anyone else have this issue.?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
WhiteHartMart said:
Set up my works Exchange account on the S3 and suspected it was causing high battery drain.
Selected some 'sleep time' from within the application and then also selected Manual Update so I could save battery. It appears manual doesn't change anything though as my mail still comes through unless I deactivated the account completely?
Anyone else have this issue.?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
That wouldn't be a bug in Exchange causing the issue.
It is, most likely, because ActiveSync, which is what Exchange uses to communicate with your phone, is a server-side "push" technology. This means that your phone, most likely, has WiFi and/or your Internet services "always on" to accommodate ActiveSync. ActiveSync doesn't work like Blackberry where the client-side does all of the control/communication (pull technology). It is all done server-side, which means that the phone has to always have an Internet connection, either through WiFi or the phone Internet services, to be ready to accept incoming information from ActiveSync.
Thanks for the reply - so the option to manually retrieve mail is pointless then as it going to get pushed whether I want it or not?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
After posting my response, I decided that it could be a little bit clearer, so here goes.
Blackberry (BES specifically), IMAP, POP3, SMTP, etc, the client side, in this case the phone, is in control of all of the message synchronization. Meaning that every n number of minutes/hours/days it opens up an Internet connection and says, "Do you have anything for me? If so, send it now." That's client-side pull technology.
ActiveSync, on the other hand, the server (in this case the Exchange Client Access Server), sends out the info, via AvtiveSync, every time something new comes in to your Exchange mailbox. This happens "real-time" rather than every n number of minutes. This means that the client side, in this case the phone, must have an "always on" Internet connection, either via WiFi or the phone's Internet service, to accept these "real-time" updates. This is server-side push technology.
Server-side push technology, by its very nature, causes the client-side, in this case the phone, to consume more battery since the WiFi and Internet "radios" must always be on.
I hope that this makes more sense than my last post.
---------- Post added at 11:33 AM ---------- Previous post was at 11:28 AM ----------
WhiteHartMart said:
Thanks for the reply - so the option to manually retrieve mail is pointless then as it going to get pushed whether I want it or not?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
Correct. The server is the controlling "party" in the paired relationship.
WhiteHartMart said:
Set up my works Exchange account on the S3 and suspected it was causing high battery drain.
Selected some 'sleep time' from within the application and then also selected Manual Update so I could save battery. It appears manual doesn't change anything though as my mail still comes through unless I deactivated the account completely?
Anyone else have this issue.?
Sent from my GT-I9300 using Xparent ICS Tapatalk 2
Click to expand...
Click to collapse
I ran the same tests on the S3. I'm syncing 3 exchange accounts.
Email exchange service drains the battery really fast ...
Nearly half of the battery is used (battery stats) for this process only [47%].
My battery cannot last:
- on 3G networks, more than 5 hours.
- on WiFi, it goes up to 8 hours.
I used to sync the same exchange accounts on 2 other Samsung devices: Captivate Glide and Galaxy Note - both running Android 2.3.5/2.3.6
=> no issues with the sync services draining the battery.
IMHO, this is not only linked to the Activesync technology, it is also linked android release and the way email exchange service is made/configured (or runs).
There might be some tweaks or possible patch for this service...
But don't know what or where, yet ...
My 2 cents ...
The phone keeps at least one connection to Google open at all times (C2DM push) when it has a network connection.
Open and half-open connections do not really cause high battery drain since your device can (and will) go to lower power states and switch the network to fast dormancy which is a sort of periodic polling for new data.
A scientific article about the topic can be found here: Link (PDF)
The relevant part is in footnote 4 of paragraph 4.1.2
In fact, even at IDLE, a handset periodically wakes up to listen for incoming packets on the paging
channel. If a downlink packet happens to arrive between two paging occasions, it will be delayed until the next paging occasion
Click to expand...
Click to collapse
Additionally that IMAP is poll-only is not entirely correct. While IMAP itself is usually only used as PULL (client requests, receives, closes connection) many servers support the IMAP IDLE mode (client requests, receives, waits for new data, receives, waits, ...) which is a real push technology.
(Technically it differs from Google's C2DM which in fact is HTTP (Comet) long-polling and not true pushing)
I've noticed a high battery drain on Exchange too, even if the account was disabled. It's unrelated to how the phone is connected (Wifi,3G,2G) and _seems_ to get lower when no data connection is open.
It will only go away if the account is removed and seems to caused by the app waking up all the time even if not needed. Thirdparty apps and stock Android do not seem to have this issue - at least my S1 did not.
(I haven't tested on the S3 with a non-stock app yet)
Btw my Exchange server is a patched Z-Push IMAP/SMTP<->Activesync converter from their trunk with Exchange2007 capabilities.
Yes, there HAS to be a bug in the exchange app on this phone.
I got my phone a month ago, and have had no issues with battery drain and high data usage with Exchange what so ever. Until this weekend.
All of a sudden, with no change in the settings at all, my battery all of a sudden just lasted 5-6 hours. It got really warm too. Then after a day or so, I got a message that my monthly limit of data was reached. I didn´t believe this at all since I had more than 500 MB left on my limit the day before.
But when I checked the settings, I was shocked to see that this was true indeed. And it was "exchange services" that caused this. It had downloaded about 600-700 MBs over this short period, thus (of course) causing my battery to drain quickly, and I will now get a nice bill from my phone company for over use of data
As I said. No changes to the settings were done. This happened over night. And of course this has to be a bug in the app, not a server-issue. No one else in my company, as far as I have heard, had had this issue (yet), but after googling I can see that this actually is a problem for many, with different phone brands.
It seems like google has got complains about this, but there has not been released a fix, which is totally unacceptable. I now have had to turn of my mail sync to prevent the data usage to go insane, and my phone to get warm, slow and quick battery drain.
If this isn´t fixed quickly, I will uninstall Exchange services from my phone (have root), and install Touchdown instead.
Here is the problem discussed:
productforums.google.com/forum/#!topic/mobile/tCA92MdBTmc
- but with no solution.
Issue was resolved by deleting account and reinstalling it. But I had to do it twice before it worked.
I also cleand the Exchange Services App with the tool SD Maid before I reinstalled my account the second time.
My battery is back to normal, and no more crazy data usage.

[Q] Email client deadlock

Hi
I've configured my IMAP email account in the stock Tablet S (official ICS) Email client with the default refresh rate of 15 minutes. Works fine initially but then, after some hours, it enters some kind of "refresh loop" where the email app's refresh icon spins every second and it presumably keeps hammering my IMAP server (as the WiFi activity indicators are constantly "lit"). Battery stats for the email app begin to skyrocket from this point on. Only workaround (not satisfactory, needless to say) I found so far is to kill the e-mail app's process. Then it works correctly for some time before it is stuck again. I have no reason to suspect there's anything wrong with the IMAP server I use. I've tried resetting the e-mail app's settings and configuring my account from scratch to no avail. Anyone else experience this?
Regards
Zbig

wifi and mobile data disconnects when screen goes off even with wifi ALWAYS ON mode

My wifi and data connection disconnects when screen goes off on my huawei ascend mate 2. For samsung phones it can be solved with secret codes like ##0011# but for huawei phones the secret codes are not working. or do you know a working secret code on hardware level for this? my power save mode is off. wifi is set on always on mode. auto synchronisation is on. my apps can all run in background. So I have set off all possible energy saving option for all apps. besides I have downloaded apps to keep wifi always on. but when I put it on always on mode on this app. It mentions that the wifi set on always on mode. but after 2 seconds I open the app (wifi always on app) it says that the wifi is on saving mode and not in always on mode. So there is another more dominant program (probably the huawei custom ROM) who has more privileges than a normal app so that it avoids that wifi is on always on mode.
Sometimes even when the screen is on, viber whatsapp does not receive calls or messages you should launch the app to receive calls and messages. you would say that it is a synchronisation problem. No. No. sync is on for all accounts. all accounts have full access on all my data and on the battery. All settings about battery saving options are set off.
I have sort of the same issue. I use KIK to talk to a lot of friends and on other phones I've had (LG G3 previously), I could load up the task manager and clear away all apps and it had no effect on getting messages. Now, with the HAM, if I clear away running programs, including KIK, even though I have KIK set as a protected app, I will not get any messages and people who send me messages say it stays on S (sent) as opposed to D (delivered). If I clear out all running apps and then load KIK up again before turning off the screen, the messages get delivered and I get notification. It's a little annoying, but keeping the program I want to receive notifications, running, seems to solve the issue for me.

Categories

Resources