A UIActivity subclass for opening URLs in Google Chrome.
Objective-C Ruby
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ARChromeActivity
ChromeActivityDemo.xcodeproj
ChromeActivityDemo Update project to Xcode 7 settings. Sep 21, 2015
.gitignore Ignored breakpoints file. Mar 17, 2013
ARChromeActivity.podspec Bump version to 1.0.6. Jan 12, 2016
ARChromeActivity.psd
LICENSE
readme.md
screenshot.png New icon, including @3X and a PSD file. Oct 21, 2014

readme.md

ARChromeActivity

A UIActivity subclass for opening URLs in Google Chrome.

Usage

Typical usage will look something like this:

NSURL *urlToShare = [NSURL URLWithString:@"https://github.com/alextrob/ARChromeActivity"];
NSArray *activityItems = [NSArray arrayWithObject:urlToShare];

ARChromeActivity *chromeActivity = [[ARChromeActivity alloc] init];
NSArray *applicationActivities = [NSArray arrayWithObject:chromeActivity];

UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:applicationActivities];

[self presentViewController:activityVC animated:YES completion:nil];

It also supports x-callback-url by either initializing with initWithCallbackURL:, or setting the callbackURL property. Note that if you set a callbackURL under iOS 9, you will be required to add "googlechrome-x-callback" to your Info.plist under LSApplicationQueriesSchemes.

Have a look at the demo app!

Demo screenshot