rides-ios-sdk: Dubious "User cancelled the login process" errors

(Using UberRides 0.5.2 via CocoaPods, tested on iPhone6 with iOS 9.3.4)

Immediately after obtaining a valid access token via deep link, our login methods themselves will sometimes return a nil accessToken with the following error:

com.uber.rides-ios-sdk.ridesAuthenticationError Code=25 "User cancelled the login process."

Note that I definitely did not cancel anything as the user. All I did was press “Allow”. This has happened with both of the following methods (with AllTrips request):

(void)loginButton:(UBSDKLoginButton * _Nonnull)button didCompleteLoginWithToken:(UBSDKAccessToken * _Nullable)accessToken error:(NSError * _Nullable)error

[loginManager loginWithRequestedScopes:@[ UBSDKRidesScope.AllTrips ] presentingViewController: self completion: ^(UBSDKAccessToken * _Nullable accessToken, NSError * _Nullable error)

If we ignore the error and use the valid access token we had already received beforehand, everything seems ok.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 1
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Hi @edjiang, I am facing a similar issue. My app gets redirect to the Uber app and right after that it again gets redirected back, and I receive “User canceled the login process” error. I have added code to AppDelegate and also have added required keys to info.plist I am using a sandbox and have enabled it in a delegate.

ios - 13.5 cocoa UberRides - 0.13

Thanks

Fix is published to Cocoapods, 0.8.1. Thanks so much for your help!