Mark
Mark

Reputation: 18204

How can you create a link wrapped into an app Icon?

I've seen a lot of apps that can create icons for on the home screen. You add it through the normal Add on Home Screeen and when you click on the app it will directly start calling or whatever. This must be done by immediately redirecting to an url like sms:// or tel:// depending on what you are trying to do. But how is this accomplished?

How can you let a page be bookmarked normally so it will get the icon and then when it's pressed immediately redirect it to a specific url?

Upvotes: 0

Views: 2234

Answers (2)

calimarkus
calimarkus

Reputation: 9977

I THINK, these icons are made using Configuration Profiles & application links (url schemes). Have a look at this thread: Installing a configuration profile on iPhone - programmatically

But they didn't find a solution in there. Profiles can only be installed via MobileSafari, they say. Not via a UIWebView. So i'm not sure how it's possible from native apps.

Anyhow the preference shortcuts aren't working anymore on iOS 5.1.

Upvotes: 1

Antonio MG
Antonio MG

Reputation: 20410

As soon as your app is opened, you call:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http://www.google.com"]];

Upvotes: 1

Related Questions