-1

Is it possible to have an application on an Iphone (or android) that can pull in the phones native apps and launch them from within that app? If it is possible, do you think it would be within Apple's standards to get on their app store?

Eric
  • 19
  • 1

3 Answers3

1

Yes this is possible you can use like this...

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"appURL"]];
Dharmbir Singh
  • 17,485
  • 5
  • 50
  • 66
1

Yes, you would first have to create a scheme for the app you want to launch. For example something like myapp://, this way, when a URL starts with your scheme it will be opened (or may be chosen to open if there are more apps with the same scheme).

You set the scheme at your XXX-Info.plist, here is an example:

<key>CFBundleURLTypes</key>
<array>
    <dict>
        <key>CFBundleURLName</key>
        <string>com.mycompany.myapp</string>
        <key>CFBundleURLSchemes</key>
        <array>
            <string>myapp</string>
        </array>
    </dict>
</array>

After the scheme is set, you can open it with safari or another app by calling

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"myapp://myparameters"]];

Click here for more info

UPDATE

For Android see this answer

Community
  • 1
  • 1
Daniel
  • 20,420
  • 10
  • 92
  • 149
  • do you think it would be within Apple's standards to get on their app store? – Eric Apr 16 '13 at 16:18
  • @Eric YES! you will have no problems with Apple because of implementing a scheme. After all, it is the OS which decides to call your app. There are no private or 3rd party libraries involved. – Daniel Apr 16 '13 at 16:23
0

Yes it is possible in iPhone using openURL.

Register the Custom URL Scheme

enter image description here

then

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"rajneesh071://"]];

Just follow this link for detail information Link

Rajneesh071
  • 30,846
  • 15
  • 61
  • 74