Is it possible to launch any arbitrary iPhone application from within another app?, For example in my application if I want the user to push a button and launch right into the Phone app (close the current app, open the Phone app).
would this be possible? I know this can be done for making phone calls with the tel URL link, but I want to instead just have the Phone app launch without dialing any specific number.
I found that it's easy to write an app that can open another app.
Let's assume that we have two apps called
FirstApp
andSecondApp
. When we open the FirstApp, we want to be able to open the SecondApp by clicking a button. The solution to do this is:In SecondApp
Go to the plist file of SecondApp and you need to add a URL Schemes with a string iOSDevTips(of course you can write another string.it's up to you).
2 . In FirstApp
Create a button with the below action:
That's it. Now when you can click the button in the FirstApp it should open the SecondApp.
To achieve this we need to add few line of Code in both App
App A: Which you want to open from another App.
App B: From App B you want to open App A
Code for App A
Add few tags into the Plist of App A Open Plist Source of App A and Past below XML
In App delegate of App A - Get Callback here
Now coming to App B code -
If you just want to open App A without any input parameter
If you want to pass parameter from App B to App A then use below Code
Note: You can also open App with just type testApp.linking://? on safari browser
Try the following code will help you to Launch an application from your application
Note: Replace the name fantacy with actual application name
I also tried this a while ago (Launch iPhone Application with Identifier), but there definitely is no DOCUMENTED way to do this. :)
In Swift 4.1 and Xcode 9.4.1
I have two apps 1)PageViewControllerExample and 2)DelegateExample. Now i want to open DelegateExample app with PageViewControllerExample app. When i click open button in PageViewControllerExample, DelegateExample app will be opened.
For this we need to make some changes in .plist files for both the apps.
Step 1
In DelegateExample app open .plist file and add URL Types and URL Schemes. Here we need to add our required name like "myapp".
Step 2
In PageViewControllerExample app open .plist file and add this code
Now we can open DelegateExample app when we click button in PageViewControllerExample.
In Swift
Just incase someone was looking for a quick Swift copy and paste