I have an IOS application. Now, form my IOS application I wanna open https://itunes.apple.com/us/app/linkedin-learning/id1084807225?mt=8 app when it is installed or open itunes if not installed.
Asked
Active
Viewed 384 times
1
-
The target app needs to have a custom URL scheme. If it does, you can check see if you can open that URL. IF so, open it, if not, open the iTunes URL. If LinkedIn doesn't support a custom URL scheme, you're out of luck. – Duncan C Jan 17 '18 at 10:37
1 Answers
3
You must know if the LinkedIn application has deep linking.
Searching on google I've found that linkedin exposes this custom url scheme linkedin://
.
To open this application is just a matter of calling:
if let url = URL(string: "linkedin://") , UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: { (open) in
// Do something
})
} else {
// DO somthing
}
To first check is to be sure that you have a valid URL and the second to check if the app is installed, else it's up to you.

Andrea
- 26,120
- 10
- 85
- 131
-
-
1My bad, I've searched but still didn't find a specific url scheme, it's worth to try "linkedin-learning://". But if this app doesn't expose a sort of scheme is impossible to launch it. – Andrea Jan 17 '18 at 10:45
-
1I'm thinking that since application URL scheme are exposed inside the application info.plist and since this file is not cyphered, you can download the ipa and search into it for that file. Once you open it the key is `CFBundleURLSchemes` – Andrea Jan 17 '18 at 10:49