uber / rides-ios-sdk

Uber Rides iOS SDK (beta)
https://developer.uber.com/docs
MIT License
374 stars 124 forks source link

-canOpenURL: failed for URL: #247

Open KrishnaPatell opened 5 years ago

KrishnaPatell commented 5 years ago

Hello there, I've integrate Uber SDK in my Objective C project. Everything build up is good but when I clicked on my custom button with build parameter to execute deeplink, my console log displayed with the following warning and app is not redirecting to Safari or Uber app.

-canOpenURL: failed for URL: "uber://?action=setPickup&client_id=MocO99_vRc9CnqD1kn8-ygTGIM9VveMu&pickup%5Blatitude%5D=21.222264&pickup%5Blongitude%5D=72.795424&pickup%5Bnickname%5D=Surat&dropoff%5Blatitude%5D=21.20351&dropoff%5Blongitude%5D=72.83923&dropoff%5Bnickname%5D=Padam%20Dungri&user-agent=rides-ios-v1.0-deeplink" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"

My code for implementing this deeplinking feature is as below:

- (IBAction)btnRequestRideClicked:(id)sender { UBSDKRideParameters *rideParameters = [self _buildRideParameters]; UBSDKRequestDeeplink *deeplink = [[UBSDKRequestDeeplink alloc] initWithRideParameters:rideParameters]; [deeplink executeWithCompletion:nil]; }

Please provide me some solution for this