1

I may be blamed of duplicating this or this or even any of these but really no one answers my issue. I need to launch an app by clicking on a button on my UI, but the application i want to launch has no custom URL Scheme and here my nightmare gets started. I tried to call the app(using NSBundle-path) ect but i could see no way to call that app. Thanks in advance for any answer-even idea.

Question-2) Is there a registery-like system on iOS system? For example, can we add the path of raw apk into a registery and forse it to start? I have a background of C, i can try on myself if it is possible

Community
  • 1
  • 1
ilhnctn
  • 2,210
  • 3
  • 23
  • 41

1 Answers1

3

There are 3 ways to open an app from your app on iOS:

  • URL schemes
  • Using the UIDocumentInteractionController to allow the user to open a file in another app
  • Using private API's

Simple. No there is no registry like system on iOS.

fbernardo
  • 10,016
  • 3
  • 33
  • 46
  • The kind that Apple would reject your app. Are you ok with that? – fbernardo Apr 17 '12 at 14:57
  • yes i'm. now the only matter is solving the issue. or how to use UIDocumentInteractionController? i dont want to navite till there, when i clicked i want to launch that app – ilhnctn Apr 17 '12 at 15:00
  • there is no limit. i may be rejected too no problem – ilhnctn Apr 17 '12 at 15:01
  • About UIDocumentInteractionController you should look it up or make another question. About the private API's just give a moment. – fbernardo Apr 17 '12 at 15:01
  • By now I know that you can use the private call SBSLaunchApplicationWithIdentifier from the SpringBoardServices private framework and that you have to give it the entitlement com.apple.springboard.launchapplications but I've been unable to do that last part. I'll look at it later. Open another question more specific. – fbernardo Apr 17 '12 at 15:24
  • i dont have such technical background so i cant ask such a question for the moment. can you please guide me a little more-i can write my mail here and you can send by mail too if you can – ilhnctn Apr 17 '12 at 18:40
  • I asked a new [question](http://stackoverflow.com/questions/10204785/special-api-to-launch-an-app-from-my-application). Can you please take a look at – ilhnctn Apr 18 '12 at 07:24
  • @the march of the black queen any success? – Deepika Lalra Jul 01 '13 at 06:28
  • @DeepikaLalra yes, URL schemes was the only legal and developer-friendly way for me. – ilhnctn Jul 08 '13 at 09:05