I want redirection to AppStore to native iOS Mail app by using the following code but its not working,i also replaced itms with http but then it opens safari browser but I need to open AppStore.
I'm using the following code it works in case of HTTP instead of itms. Do I need to add anything more in plist because Allow Arbitrary Loads is already True. Please suggest me any idea to solve this problem.
let urlStr = "itms://itunes.apple.com/in/app/mail/id1108187098?mt=8"
if #available(iOS 10.0, *) {
UIApplication.shared.open(URL(string: urlStr)!, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(URL(string: urlStr)!)
}