[GUIDE] Push Email with Google Sync. Universal How-To for WinMo

Search This thread

Laos101

Senior Member
Mar 31, 2009
200
12
NY, Long Island
Okay, I recently posted the news on Google's new synchronization effort to include Gmail, I decided to do some research and create a well organized (Better than Google's) guide on to properly setup an exchange server with Google's servers. This is for Windows Mobile devices running WM5 or later, though I suggest 6.5 releases due to their support of kinetic scrolling.

1. What is Google Sync?

Google Sync is a beta feature by Google that allows you to synchronize your cloud-based Google services (Such as Gmail, Google Contacts, Google Calendar, etc.) with your PC, handheld, and is widely cross platform. Rather than have a Outlook configuration and have to browse the web for your mail, etc. Google Sync allows you to package all of these things into one, easy to read and comprehend service.

2. Wow! That's awesome! How does it work with Windows Mobile?

On Windows Mobile, you can view the synchronized content through three main parts of the software

A. Outlook Contacts. Your contacts list from Google Contacts will be updated into your windows mobile contact page, allowing you to phone, text, and email people.

B. Outlook Mail. Your email will be updated with your Gmail account, allowing you send and receive push email

C. Calendar. The Windows Mobile Calendar will update with all of your Google Calendar appointments and correspond with those on your device.

Google Sync goes both ways, meaning you can update your contacts on your device, and in turn have its changes appear on your Google Contacts page on the Google Cloud.

Google Sync connects to all of these features using Activesync, through something called an Exchange Server

3. What's an Exchange Server?

An Exchange Server, in short, is a corporate sync server.

If you are an older fan of Windows Mobile, you'd know it was designed for corporate groups to use the devices and sync their contacts, appointments, mail, etc. with whatever they have on their corporate computers. This is typically done with Activesync, but once wireless internet took off, people decided they could also sync such content over WiFi and 1x/3G

As a result, the idea of wireless syncing over the internet with a server, called the Exchange Server, was born.

Google has setup such an Exchange Server, and now your cloud content on their computers can be accessed and synchronized, allowing you to better manage the content.

4. That's amazing! How do I get started?

To get started, you first need to ensure you're properly connected wirelessly to the internet. Whether it be WiFi or 1x/3G, ensure you can browse the web wirelessly, once you have that configured, we can prepare your Google Account to sync.

Step 4a. Backup.

Google Sync is not perfect, not by a long shot. To add, its still in beta. We don't want to risk losing our favorite phone numbers and contacts (That took months to get,) overnight. So we pick up PIM Backup.

Use PIM Backup to backup your contacts, appointments, etc.

Once you backup using PIM Backup, Delete all of your contacts, appointments, and email accounts. We will let our Exchange server do all the work for that, and to prevent any contradictions in the content in the future, and to ensure everything gets changed when we sync and nothing is left behind.

After you have a clean slate, its time to make sure Google doesn't.

Step 4b. Prepare Google.

If you haven't already, setup an account with Google.

Now, we can't just start syncing, we need to make sure all three of our services that we will be syncing (Contacts, Calendar, Gmail) have accounts, and have content.

If you don't want to setup any of the following, just skip the stop labeled for each one you don't want to setup for syncing

To Setup GMail

Go to http://www.gmail.com

Ensure you have an account setup, and note the full email on the top right for future reference.

Ensure you have at least ONE email in your account.

And you're done!

To Setup Google Contacts

Go to http://www.google.com/contacts

Ensure you have an account setup by logging in with your Google Credentials

Ensure you have at least ONE contact in your "My Contacts" Folder area. Add all your interested contacts and save them in your interested groups

And you're done!

To Setup Google Calendar

Go to http://www.google.com/Calendar

Ensure you have an account by logging in with your Google Credentials

Ensure you have at least ONE appointment in your calendar for your Google account. It doesn't matter so long as you have an appointment. If you do not put an appointment in, you will get an error.

Add all your appointments and set them to their proper occurences

And you're done!

---

And now we have all three services ready to be synced!


Step 4c. Setup the Exchange Server

Setting up the Exchange Server is tricky, it took me a few tries to work out the kinks, but the hardest part is over with! (setting up the Google Software) Now we just have to properly input all the information.

First off, you need to remove any previous partnerships. This includes USB and Exchange server connections. Just so you know, you can only have one exchange service at a time, meaning you cannot sync corporate email and google Sync at the same time. Sorry!

Now that we are clear. we will have a blank screen looking like this.




Click the "Set up your phone to sync with it" button, and it will bring you to a page like this

((IF YOU DO NOT GET THIS PAGE, SKIP TO THE NEXT IMAGE))



As you can see, its asking for an email and if you want to detect settings.

Uncheck the detect settings, and enter your full google email (Often it will be Username@Gmail.com)

Once you enter the information, click the next softkey at the bottom right

Now click the softkey next to continue, (if you did not get this page at all, just skip to the next picture)

Now you will arrive at




As you can see, it wants a server to connect to,

enter in the Server Address: m.google.com

Check the "This server requires an encrypted (SSL) conncetion" box

Move on and click the next softkey at the bottom right

You will then arrive at this page




Here you enter your user credentials.

For Username: Enter your FULL Email (USERNAME@Gmail.com in my case)

For Password: Enter your FULL password

For Domain: leave blank (If it DOES not let you leave it blank, enter 'Google')

Check the "Save Password" box so you don't have to enter it again and again

After you entered all of these credentials, click the softkey next on the bottom right




Now we get to choose what to sync!

Check the Contacts Box if you prepared your contacts from above

Check the Calendar Box if you prepared your calendar appointments from above

Check the Mail Box if you prepared your mail from above

DO NOT check Tasks or Text Messages, as I do not believe they work well enough yet ( I do not support them in this how to,)

Tap the menu softkey on the bottom right, and choose Advanced.




As you can see here, check your syncing is correct.

This is up for you to change as you find necessary. If you want to update things on your end, select

"Keep the item on my Device"

If you want to update things on the cloud end (making changes on Google Contacts), Select

"Replace the item on my Device"

Change this as needed in future syncs

Click Save, and then Click Finish to finish your sync settings





And we're ready to sync!

Call it crazy, but Google may freak out on your first sync, so be sure to sync 1-3 times in a row before being finished, that way you know for a fact your contacts, appointments, and mail are all properly updated.




Last but not least, for minor tweaking, click the Menu softkey, then Schedule

Here a wide set of options to decide (based on battery, time, etc.) how often and when you want to sync your data on the exchange server. This is up for you to decide.

And now Google will Sync properly, Congratulations!

One last thing, remember Push Email is not friendly to your battery!
 
Last edited:

Laos101

Senior Member
Mar 31, 2009
200
12
NY, Long Island
ATTACHMENTS IN GOOGLE SYNC

At the moment, Google Sync only supports attachments from other gmail accounts. This means if someone from @gmail.com sends you an attachment, it will arrive over Google Sync, otherwise you will not receive it. This is NOT a Windows Mobile Issue, this is on the Google End and is currently being work on by their engineers.

If you are STILL not receiving attachments from other gmail accounts, ensure the following settings are in place.



Go to Activesync, and click the menu right softkey, from there, select options. you will enter the settings page showing all the content you are syncing. Click the email day and click settings.

9.jpg


As you can see by the image, you need check the "Include File Attachments" Key

I'm sure this will include None Gmail addresses as soon as Google Fixes it! I will update this when it does happen!


---------TROUBLESHOOTING----------

UPDATED: 09/27/09

Here are a list of errors that may occur when trying to sync


support code 0x85010004 - "Your account in microsoft exchange does not have permission to synchronize..."'

Something you're trying to sync is not properly setup, see the above step 4b to make sure your Google services you're trying to sync are setup properly. Also make sure you're not trying to sync something you may not be able to (such as tasks or text messages)

(At Enter User Information) "Please Enter your correct credentials"

Ensure you are using the RIGHT gmail email (It may be @gmail.com or @googlemail.com) and RIGHT password.

INFO:
I had some trouble setting this up at first but now its working. For reference, I have listed the issues I had & how I got it working...

Set-up: With phone connected to PC via USB (for charging purposes) I set-up ActiveSync for google. Synchronization completed successfully.

Problem: After disconnecting from the PC, activesync to google would fail to sync via my GPRS (3G) connection - error 'ActiveSync cannot reach the server. Check that the server address and proxy server settings are correct' Support code: 0x80072F78

Solution: Basically, remove ALL activesync entries & start over - open activesync & select "options" from the menu then select & delete each partnership in the list.

Set-up: With phone disconnected from PC, an active 3G connection and no activesync partners, I started again following this guide to the letter except that I included "Tasks".

Problem: Synchronization Failed - The server you are synchrionizing with is not an Exchange server. Support code: 0x85030022

Solution: De-select "Tasks"


NOTES:
  • Initially, even though I had an existing (non MS exchange) partnership, I was able to set-up google sync & perform a synchronization but it seemed only to work when connected to my PC via USB. I'm not entirely sure if this issue was due to the phone being connected to the PC via USB when I first set-up google sync or the existing PC partnership. As said though removing all partnerships and setting up while having an active GRPS connection seemed to solve it.
  • It would seem that "Tasks" is currently unsupported & will cause sync errors. Perhaps your guide should say "DO NOT check Tasks, as you will get activesync error 0x85030022"
Hope this helps, Steve.

(This quote is supportive to the fact you need to delete all previous partnerships before syncing, and also tasks are unsupported yet)
 
Last edited:

nhuda

Senior Member
Nov 3, 2008
81
0
Dhaka
Good Job

Excellent effort! This is a very good guide and it should be on 'sticky'.

Best wishes :),
 

vibez

Senior Member
Apr 13, 2008
254
9
Great guide :) Any idea how to sync multiple calendars? At the moment it only syncs my main calendar
 

sd00

Senior Member
Apr 13, 2006
149
1
South Shields
INFO:
I had some trouble setting this up at first but now its working. For reference, I have listed the issues I had & how I got it working...

Set-up: With phone connected to PC via USB (for charging purposes) I set-up ActiveSync for google. Synchronization completed successfully.

Problem: After disconnecting from the PC, activesync to google would fail to sync via my GPRS (3G) connection - error 'ActiveSync cannot reach the server. Check that the server address and proxy server settings are correct' Support code: 0x80072F78

Solution: Basically, remove ALL activesync entries & start over - open activesync & select "options" from the menu then select & delete each partnership in the list.

Set-up: With phone disconnected from PC, an active 3G connection and no activesync partners, I started again following this guide to the letter except that I included "Tasks".

Problem: Synchronization Failed - The server you are synchrionizing with is not an Exchange server. Support code: 0x85030022

Solution: De-select "Tasks"


NOTES:
  • Initially, even though I had an existing (non MS exchange) partnership, I was able to set-up google sync & perform a synchronization but it seemed only to work when connected to my PC via USB. I'm not entirely sure if this issue was due to the phone being connected to the PC via USB when I first set-up google sync or the existing PC partnership. As said though removing all partnerships and setting up while having an active GRPS connection seemed to solve it.
  • It would seem that "Tasks" is currently unsupported & will cause sync errors. Perhaps your guide should say "DO NOT check Tasks, as you will get activesync error 0x85030022"
Hope this helps, Steve.
 

Thresher

Senior Member
Aug 9, 2006
591
12
I set this up and am stoked with it. Is there a way to have my desktop Outlook sync via exchange as well? I tried setting up an account but got errors so I am curious if anyone on XDA has tried it/gotten it working?
 

Laos101

Senior Member
Mar 31, 2009
200
12
NY, Long Island
INFO:
I had some trouble setting this up at first but now its working. For reference, I have listed the issues I had & how I got it working...

Set-up: With phone connected to PC via USB (for charging purposes) I set-up ActiveSync for google. Synchronization completed successfully.

Problem: After disconnecting from the PC, activesync to google would fail to sync via my GPRS (3G) connection - error 'ActiveSync cannot reach the server. Check that the server address and proxy server settings are correct' Support code: 0x80072F78

Solution: Basically, remove ALL activesync entries & start over - open activesync & select "options" from the menu then select & delete each partnership in the list.

Set-up: With phone disconnected from PC, an active 3G connection and no activesync partners, I started again following this guide to the letter except that I included "Tasks".

Problem: Synchronization Failed - The server you are synchrionizing with is not an Exchange server. Support code: 0x85030022

Solution: De-select "Tasks"


NOTES:
  • Initially, even though I had an existing (non MS exchange) partnership, I was able to set-up google sync & perform a synchronization but it seemed only to work when connected to my PC via USB. I'm not entirely sure if this issue was due to the phone being connected to the PC via USB when I first set-up google sync or the existing PC partnership. As said though removing all partnerships and setting up while having an active GRPS connection seemed to solve it.
  • It would seem that "Tasks" is currently unsupported & will cause sync errors. Perhaps your guide should say "DO NOT check Tasks, as you will get activesync error 0x85030022"
Hope this helps, Steve.

Thanks for the supportive info on tasks, and i'll add it to the Troubleshooting page to support my fact of how you cannot sync certain items and need to delete all partnerships prior

And YES! You can sync the Google Cloud with your PC, Mac, Linux, pretty much any OS!

Go here to learn more
 

Thresher

Senior Member
Aug 9, 2006
591
12
Google pc sync is lacking contact sync but it has a plugin for calendar and you can use imap for email. Not quite the same but will work good enough.

Tanks for the GUIDE
 

Real_Justus

Senior Member
Mar 12, 2007
118
34
Klein Mittelburg (Central)
What is about appointments categories? As far as I know, and last time i tryed, all categories were gone after sync because GoogleCalender does not support categories at all... :( Is the category-feature fixed or added?
Best regards
 

Thresher

Senior Member
Aug 9, 2006
591
12
Hmm, I followed all these steps and got the gmail working via exchange but emails are not pushing to my device. I still have to hit send/receive to get the mail synced.

Any ideas on how to get the 'push' working?
 

Thresher

Senior Member
Aug 9, 2006
591
12
I answered my own question, I had to go into ActiveSync then MENU then SCHEDULE. By default Sunday is an OFF PEAK time and it was only getting messages every 60 minutes.

Turned off OFF PEAK and everything is flying.
 

Laos101

Senior Member
Mar 31, 2009
200
12
NY, Long Island
The guide notes Scheduling times :p

As for Contacts and PC, i think thats because Email covers the contacts part (in GMail's mind) but I may be incorrect. It could just be that people dont really store contacts on their PCs too much aside from Email

As for categories for the appointments, you can set a status, which I suppose is the closest thing to a category. This is a Google Calendar-end issue, you can try to change the category on the PPC end, and then config Sync to change items on their end when there is a conflict, but it may not carry over. Good luck!
 

mbritten

Senior Member
Feb 17, 2007
167
16
Appleton, WI
I've noticed that gmail doesn't support push of email attachments yet, which sucks because that is how I get my voicemail messages. Just wondering if anyone has read when/if Google plans on allowing this?
 

sdlopez83

Senior Member
Aug 8, 2007
2,292
275
40
NY-Chile
Damn no tasks, Wish the tasks could be incorporated as well. Any shot in the future? I started to use google tasks not to long ago and sort of got into this for the ability to sync google tasks. oh well the push email is sweet anyway.
 

Laos101

Senior Member
Mar 31, 2009
200
12
NY, Long Island
Damn no tasks, Wish the tasks could be incorporated as well. Any shot in the future? I started to use google tasks not to long ago and sort of got into this for the ability to sync google tasks. oh well the push email is sweet anyway.

Look at it this way, 6 months ago it didnt have Gmail and it does now, its probably all coming in due time!

As for MS Myphone and Google, I have no idea. I don't use Myphone because it never syncs when i'm docked on my PC at night, though The Exchange Server does

EUREKA! I found a solution to the Attachment issue,

It seems if you set the unique settings to pickup new attachments beyond X size, they will attach. Writing attachment to guide as we speak! double checking functions and will update my post tonight
 
Last edited:

Laos101

Senior Member
Mar 31, 2009
200
12
NY, Long Island
Second Post is updated with info on attachments. Unfortuantly, only GMAIL attachments go through, something to do with their servers possibly.

ATTACHMENTS IN GOOGLE SYNC

At the moment, Google Sync only supports attachments from other gmail accounts. This means if someone from @gmail.com sends you an attachment, it will arrive over Google Sync, otherwise you will not receive it. This is NOT a Windows Mobile Issue, this is on the Google End and is currently being work on by their engineers.

If you are STILL not receiving attachments from other gmail accounts, ensure the following settings are in place.



Go to Activesync, and click the menu right softkey, from there, select options. you will enter the settings page showing all the content you are syncing. Click the email day and click settings.

9.jpg


As you can see by the image, you need check the "Include File Attachments" Key

I'm sure this will include None Gmail addresses as soon as Google Fixes it! I will update this when it does happen!