Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
Hello lufizi!, hope you're doing right... I'm using deep links on iOS 13.5 and works great. This is how I made requests to Uber Rides and Waze too...
OPENING WAZE:
if UIApplication.shared.canOpenURL(URL(string: "waze://")!) {
let urlStr = "waze://?ll=\(latitude),\(longitude)&navigate=yes"
UIApplication.shared.open(URL(string: urlStr)!)
} else {
UIApplication.shared.open(URL(string: "https://apps.apple.com/us/app/wazeAppID")!)
}
OPENING UBER
if UIApplication.shared.canOpenURL(URL(string: "uber://")!) {
let urlStr = "uber://?client_id=INSERT-YOUR-CLIENT-ID-KEY-HERE&action=setPickup&pickup[latitude]=\(pickUpLatitude)&pickup[longitude]=\(pickUpLongitude)&pickup[nickname]=\(currentLocationDescription)&dropoff[latitude]=\(dropOffLatitude)&dropoff[longitude]=\(dropOffLongitude)&dropoff[nickname]=\(destinationPlaceDescription)".replacingOccurrences(of: " ", with: "%20")
UIApplication.shared.open(URL(string: urlStr)!)
} else {
UIApplication.shared.open(URL(string: "https://apps.apple.com/us/app/uberAppID)!)
}
Let me know if it was helpful for you... Have a nice day :)