As I’ve written about in the past, Gmail on the iPhone has been a less than amazing experience thus far. It constantly sends you copies of your own sent mail, what you do on the iPhone isn’t matched in your web interface – it just plain sucks…or sucked. Why? Because it wasn’t IMAP – but that has all changed, as Google has flicked the switch on IMAP support – and has even included details specifically for how to add IMAP Gmail to your iPhone and Apple Mail.
For iPhone you need to manually add the Gmail account in the in the Other mail settings. If you set it up through the Gmail logo, you’ll be setting up POP mail – and none of this will work for you. You can click here for full instructions.
For Apple Mail instructions it’s a little less complicated. You can find those here.
A site called 5thirtyone has some really good advanced tips on how to get everything up and running smoothly, which you can find here.
Between all of this, you should be able to get IMAP Gmail up and running smoothly in no time.