Uber SSO login issue in iOS 8 Swift 2.2 -
i trying integrate uber ride sdk in app.
use code add uber login button
whiteloginbutton = loginbutton(frame: cgrectzero , scopes: [.profile, .places], loginmanager: loginmanager(logintype: .native)) whiteloginbutton.presentingviewcontroller = self whiteloginbutton.delegate = self whiteloginbutton.colorstyle = .white blackview.addsubview(whiteloginbutton)
and delegation use
extension viewcontroller : loginbuttondelegate{ func loginbutton(button: loginbutton, didlogoutwithsuccess success: bool) { self.showmessage("logout success") } func loginbutton(button: loginbutton, didcompleteloginwithtoken accesstoken: accesstoken?, error: nserror?) { if accesstoken != nil { self.showmessage("got accesstoken!") } else { // error } }
code not working native type login in app. in details sso login not redirect official uber app app access token.
all callback url , settings verified other sample , working in ios 9+
Comments
Post a Comment