誰かが彼のアプリからmoovitの場所への道順までうまくディープリンクしましたか?なぜ私はできないのですか?それはちょうどアプリを開き、何もしません.... 誰もが正常にどこに助けてください方向にリンクされている場合。Moovit Deep Linking Fails、Swift
if UIApplication.shared.canOpenURL(URL(string: "moovit://")!) {
// Moovit installed - launch app (with parameters)
let MoovitURL: String = "moovit://directions?dest_lat=40.758896&dest_lon=-73.985130&dest_name=TimesSquare&orig_lat=40.735845&orig_lon=-73.990512&orig_name=UnionSquare&auto_run=true&partner_id=<testApp2345>"
let escapedString = MoovitURL.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed)
UIApplication.shared.openURL(URL(string: escapedString!)!)
}else {
// Moovit not installed - send to store
UIApplication.shared.openURL(URL(string: "https://itunes.apple.com/us/app/id498477945")!)
}
}
でも、Moovit自身の例は私のために働いていません....何が間違っていますか?
多くの人に感謝します!私はあなたの努力を助けていただきありがとうございます。そうであれば正しい答えをマークする。 – RandomGeek