How to call iphone application from another application

Are there any possibilities for calling / calling the iphone application from another application, if so, then what is the snapshot for this.

+4
source share
2 answers

This is a specific example, but if you set up a protocol handler when the URL is loaded using Safari, which it cannot handle (yourappProtocol: //), it will disable your application to process it.

You need to add the runtime configuration to your Info.plist.

And then run the delegate:

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url { [viewController handleURL:url]; return YES; } 

Read more here: http://www.mobileorchard.com/apple-approved-iphone-inter-process-communication/

And here: http://blog.innerfence.com/2009/01/05/2-way-app-integration-on-the-iphone-how-it-works/

+4
source

Please note that the protocol handler for your application must be unique - if several applications installed on the iPhone respond to the same handler, there is no way to find out which application will start.

i.e.

tweet://... - bad.

mySuperTwitterApp://... - good.

0
source

Source: https://habr.com/ru/post/1300265/


All Articles