Yes A connection can be made between two applications on an iPhone, but is limited to several scenarios.
There may be applications that need to be sent to the background image in accordance with some events, such as phonecall, etc. In such cases, you will have to set up your audio session (Voip-based application) and send a notification accordingly.
The previous example is just interaction between applications with less flexibility (sending an application to a background image for some important embedded event). Another way to do this is through URL schemes, the apple has built-in functions and support for some applications, such as mail.tel, etc. But one of the applications will come to the fore.
How can you call the phone number that is built into the application using: -
NSString *phURL= [NSString stringWithFormat:@"tel:%@", [NSString StringWithString:@"1-800-555-1212"]]; NSURL *phoneURL = [NSURL URLWithString:phURL]; [[UIApplication sharedApplication] openURL:phoneURL]];
By the way, tell me if you need to implement Custom URL schemes .. with pleasure.
- Another way is the UIDocumentInteractionController , which provides in-app support for interacting between specific files (Sandbox prevents full access or even access that can modify the data of another application). How can it be used to preview files in an email application or to download attachments. But you cannot change them for another application, of course, you can copy it and change it for your application.
source share