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?
Asked
Active
Viewed 219 times
3 Answers
1
Yes this is possible you can use like this...
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"appURL"]];

Dharmbir Singh
- 17,485
- 5
- 50
- 66
-
do you think it would be within Apple's standards to get on their app store? – Eric Apr 16 '13 at 16:17
-
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"]];
UPDATE
For Android see this answer
-
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
then
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"rajneesh071://"]];
Just follow this link for detail information Link

Rajneesh071
- 30,846
- 15
- 61
- 74
-
do you think it would be within Apple's standards to get on their app store? – Eric Apr 16 '13 at 16:18
-
-
http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Introduction/Introduction.html – Rajneesh071 Apr 16 '13 at 17:33