Making Chrome Better on IOS

Although Google Chrome is *essentially* nothing more than a UIWebView skin on iOS, it’s still a much better browsing experience overall. The one thing that really kills Chrome is the fact that all apps will launch in Safari by default. But there’s a way to prevent this. It takes co-operation from all of the major developers, but if implemented, could be really, really cool.

Here’s a quick run down on how it works:

When the user clicks the “Open In Web Browser” option, here’s the code that needs to be implemented in order to default to Chrome, but fallback to Safari if Chrome is not installed.

1
2
3
4
5
if([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"googlechrome:"]]) {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"googlechrome://%@", myURL]]];
} else {
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:myURL]];
}

Why is this a good idea? If a user has Chrome installed, chances are they wish that it would be their default browser. And this method works. Very well, actually.

Again, just an afternoon’s thought. But it would be awesome to see it come together.

Agree? Disagree? I’d love to know why. Email or tweet me.

Update: A lot of people have emailed/tweeted me saying that it’s unfair for me to say that Chrome is “just a UIWebView skin”. I definitely didn’t mean to downplay the hard work that went into making Chrome for iOS. The speed difference doesn’t bother me, and it’s my default browser on all my iOS devices. I simply meant that due to Apple’s restrictions, Chrome uses the UIWebView without all of the awesome things that make Chrome, Chrome.

About Raphael Caixeta
I've been programming ever since I was 13, learning Visual Basic. After a while, Visual Basic got really boring, and so I decided to learn C and some C++. I never really did anything with C, except for learning how to make simple PSP programs. When high school came around, I decided it would be fun to take a web design class. Even though it was a really basic class (where we learned to make tables, backgrounds), it gave me the start to learn things on my own at home. After that class was over, a friend of mine started learning PHP and showed me some cool little sites he was making. I started learning PHP the weekend after. 4 years later, I'm now able to create amazing websites using PHP, MySQL and jQuery. I started iPhone development a few months after the SDK was out, and I'm now constantly improving my iPhone dev skills.