I want to check whether an app is installed in my phone or not. If it is already installed I want to launch the same. If it not installed I need to open the Appstore link.
I could opened the Appstore from the url,
https://itunes.apple.com/us/app/stack-ar/id1269638287?mt=8
by using the below code,
let urlString = "https://itunes.apple.com/us/app/stack-ar/id1269638287?mt=8"
UIApplication.shared.open(URL(string: urlString)!, options: [:]) { (success) in
}
How can I open the app if it is installed?