Use The Gmail App To Share Links From Mobile Safari [iOS Tips]

By

share via Gmail app

Mobile Safari has a great sharing feature, letting you send a web page to anyone via iMessage, Twitter, Facebook, or email. The bummer thing is, though, that if you hit Mail, your iPhone will wrest control from you and make you send via the built-in iOS Mail App.

But you don’t want to use Mail. You prefer the Gmail app, right? Of course you do. How the heck, then, can you send that adorable picture of a cute pug puppy via email using the Gmail app? With a secret bookmark, of course.

Here’s how.

First, launch Safari, and load a webpage. This one is fine. Now, tap on the Share button at the bottom of the screen, the icon that looks like a square with a curved arrow pointing up and out to the right. Tap on Bookmark, and then hit the X to delete whatever page title is auto-populated there. Type in something like Send To Gmail, then replace the URL in the next box down with the following code. I recommend you copying and pasting it to make sure it’s right, and all one line.

javascript:window.location='googlegmail:///co?subject='+encodeURIComponent(document.title)+'&body='+encodeURIComponent(location.href);

Hit Save at the top to get out of the bookmark creation screen. You’ll end up back in Safari.

Now, whenever you’re humming along the information superhighway using your iOS device and hit the Share button at the bottom, you just tap on the Bookmarks icon at the bottom instead of the Mail button, select Send to Gmail, and–if your Gmail app is running in the background–set up an email to send with the URL of the webpage you wanted to share and a subject that’s set to the title of that same webpage. Slick, huh?

You might get a dialog badge like the one in the screenshot above, but that’s ok. Hit the Open button there and you’ll go right to Gmail on your iPhone. It works on the iPad and iPod touch, as well.

Source: Mac Stories
Via: Macworld Hints

Newsletters

Daily round-ups or a weekly refresher, straight from Cult of Mac to your inbox.

  • The Weekender

    The week's best Apple news, reviews and how-tos from Cult of Mac, every Saturday morning. Our readers say: "Thank you guys for always posting cool stuff" -- Vaughn Nevins. "Very informative" -- Kenly Xavier.