uber/rides-ios-sdk

Accessing Uber History Scope

aparande opened this issue · 0 comments

I am trying to access the Rides API (specifically the history endpoint). However, when I specify the scope, I cannot log-in via SSO because an exception is raised saying "Your app is not authorized for the requested scopes"

loginManager = LoginManager(loginType: .native)
loginButton = LoginButton(frame: CGRect.zero, scopes: [.history], loginManager: loginManager)

If I pass an empty list for scopes, then I can login via SSO, but when I try and fetch my history, I get an internal server error:

let ridesClient = RidesClient()
ridesClient.fetchTripHistory { (history, response) in
        guard let history = history?.history else {
                print("\(response.error?.title) - Code: \(response.error?.code)") // prints 'Optional("We have experienced a problem.") - Code: Optional("internal_server_error")'
                return
        }
            
        print("Loaded \(history.count) rides")
}

I assume this is because my application is not authorized to access these scopes, but I see no option to authorize it in the developer console.

Screen Shot 2019-11-27 at 6 42 24 PM

I have set the redirect URI and the privacy policy URL. As a single developer, I do not have a Uber Business representative or Uber point of contact, and I can't find any information on how to get one. It seems other users have been having this issue as well.

https://twitter.com/batch08/status/1195433657239891968

What is the resolution?