johan
johan

Reputation: 6666

Launching web app from native app

Does anyone know how to launch a web app from a native app?

I assume that this is hard to achive, but the next best thing would be to launch safari with a specific URL, without the URL-bar. And I don't want it to be done within the app, I would prefer if the native app could go into a suspended state.

Upvotes: 0

Views: 389

Answers (2)

Saurabh
Saurabh

Reputation: 22893

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

and enable multitasking in your app so when the safari opens your app will go in suspended mode.

Update -

Read my these blog entries -

http://www.makebetterthings.com/blogs/iphone/open-phone-sms-email-map-and-browser-apps-in-iphone-sdk/ http://www.makebetterthings.com/blogs/iphone/launching-your-own-application-via-a-custom-url-scheme/

unfortunately you can not open all the apps! but you can add custom URL scheme in your own app to open them

Upvotes: 0

Related Questions