Wednesday, May 8, 2013

[Gd] Integrate Chrome with your iOS app

| More

Chromium Blog: Integrate Chrome with your iOS app

As an iOS app developer, when your users want to access web content, you currently have two options: create your own in-app web browser frame, or send users away from your app to a browser.

With Chrome’s OpenInChromeController class with x-callback, users can open a web page in Chrome and then return to your app with just one tap.

In the example below, a YouTube user has opened a link in Chrome. “YouTube” is prominently displayed in Chrome’s back button. Touching “YouTube” returns the user to the YouTube app.

After you've downloaded the OpenInChromeController class and added it to your project, you’ll be able to check if Chrome is installed, and if so, send links to Chrome with or without x-callback enabled. Additionally, you can specify whether or not to open a new tab when sending a link to Chrome. For a deeper dive and to download the code, check out our developer docs.

Posted by Michele Aiello, Software Engineer and Callback Captain

No comments: