iPhone - Open Application from Web Page - iphone

This sounds odd. In fact, it sounds like a security risk to me. However, I would swear that I have seen web pages that you can click a link on and it opens the app store on the iPhone.
My question is, is it possible to launch any application from through a web page? Can parameters be passed to the application? I do not need technical details. I'm just curious if it is possible.
Thank you,

Yes. From Control and configuration of applications through Info.plist - Invoking your iPhone application by URL:
Invoking your iPhone application by URL
The CFBundleURLTypes key allows you to specify URL schemes that will cause the iPhone to switch to your application. No, you can't override the schemes for the built-in applications.
If your application is launched using a URL type named scheme, then you can also provide a different startup image "Default-scheme.png" instead of the regular "Default.png".
See iPhone file extension app association for more details.

Related

opening a native app from a webapp

I was wondering if it's possible to achieve some sort of thing?
I have a web app, and for example - I want it to run facebook native app, is it possible?
You could use a custom URL scheme for your app.
See this question iPhone/iPad URL Custom Scheme to open a file

Using another one application in one Iphone Application?

anytutorial to use good reader application in iphone sdk?
can I use Good reader application in my Iphone APplication?
To launch another application you have to find out if they have published a protocol to use and then 'open' that URL. See example, but not sure if GoodReader has published a protocol or how to find out if they have. You could always contact the developer directly.
You can't access another applications Sandbox or start another application via code, otherwise Apple will reject the app. I stand corrected to the answer about URL schemes to launch another app. You learn something new everyday.
You [can also] build the PDF functionality into your own app (i.e. use a UIWebView to do that for you).

Choosing what Iphone app must open one url schema

I'm able to open a url scheme with my apps. However i can have more that one app with the same
url scheme registered so i would like let user choose the default app for the scheme.
I need to use the same scheme for all my apps. Now by default iphone uses the last app installed that can open the schema.
Have you same idea to solve my problem?
Do you know if is possible inside an app choose itself as default to open a url scheme?
I can't find the possibility to do this in generale setting of Iphone.
Thanks you
It is not supported. Here is a note from Apple documentation.
If your URL type includes a scheme
that is identical to one defined by
Apple, the Apple-provided application
is launched instead of your
application. If multiple third-party
applications register to handle the
same URL scheme, it is undefined as to
which of the applications is picked to
handle URLs of that type.
Implementing Standard Application Behaviors
A possible solution would be to have your apps connect to the your server to get a list of your apps and their supported URL schemes. You can present that list to the user and the user can select the default app.

Can you open apps within other apps, with no URL scheme?

Is it possible to open another app, like Camera, from a third-party app? I know there are URL schemes - http://wiki.akosma.com/IPhone_URL_Schemes - but I just want to open an app, not send any data to the app.
Unfortunately, no. Launch Services is private API on the iPhone. You application can launch another app only through trying to open a URL registered by that app or a file document the app understands. However, as far as I know, your app has no control over or knowledge about which app exactly will handle the URL or the file.
One way to fire up the camera from within your app, of course, is the UIImagePickerController class.
http://developer.apple.com/iphone/library/documentation/uikit/reference/UIImagePickerController_Class/UIImagePickerController/UIImagePickerController.html
It's not quite what you're asking, but it might be as close as you're going to get.

Launch iPhone setting screen from Application?

I am developing an application where i want that upon a press of button iPhone settings screen should open.
Is there any restriction from apple to access it?
Is it possible or not,If yes then how?
No you can't do that. However as an alternative you can use This Framework to mimmick the settings app, so that you can set your settings from the official settings app, or from a in app settings page.
No, it's not possible using public API's.
However there exists a number of frameworks that allows you to access the settings bundle directly from within your application. Take a look at this SO question for more information.