是优步';空气污染指数仍然稳定吗?我能';无法使用IOS 13 swift 5.0进行基本身份验证
在尝试对Uber的IOS Ride Request SDK进行基本集成时,我按照这里的说明进行了操作 当尝试验证用户身份时,它会打开Uber应用程序,然后立即返回到我的应用程序。控制台打印“code=25‘用户取消了登录过程’”,我使用的是一台带有IOS 13和Swift 5.0的真实设备。看起来Uber开发者社交媒体自2017年以来就没有更新过,而且看起来也不是很活跃 Info.plist是优步';空气污染指数仍然稳定吗?我能';无法使用IOS 13 swift 5.0进行基本身份验证,swift,api,authentication,deprecated,uber-api,Swift,Api,Authentication,Deprecated,Uber Api,在尝试对Uber的IOS Ride Request SDK进行基本集成时,我按照这里的说明进行了操作 当尝试验证用户身份时,它会打开Uber应用程序,然后立即返回到我的应用程序。控制台打印“code=25‘用户取消了登录过程’”,我使用的是一台带有IOS 13和Swift 5.0的真实设备。看起来Uber开发者社交媒体自2017年以来就没有更新过,而且看起来也不是很活跃 Info.plist <key>UberClientID</key> <string&g
<key>UberClientID</key>
<string>907YWpr4cTwH9-TWVP0Fq8DX-_HuCxN3</string>
<key>UberDisplayName</key>
<string>Wandr</string>
<key>LSApplicationQueriesSchemes</key>
<array>
<string>uber</string>
<string>uberauth</string>
</array>
<key>UberCallbackURIs</key>
<array>
<dict>
<key>UberCallbackURIType</key>
<string>General</string>
<key>URIString</key>
<string>com.wandrinc.Wandr://oauth/consumer</string>
</dict>
</array>
应用程序代理
func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any]) -> Bool {
let handledUberURL = UberAppDelegate.shared.application(app, open: url, sourceApplication: options[UIApplication.OpenURLOptionsKey.sourceApplication] as? String, annotation: options[UIApplication.OpenURLOptionsKey.annotation] as Any)
return handledUberURL
}
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
let handledUberURL = UberAppDelegate.shared.application(application, open: url, sourceApplication: sourceApplication, annotation: annotation)
return handledUberURL
}
输出
Error Domain=com.uber.rides-ios-sdk.ridesAuthenticationError Code=25 "User cancelled the login process." UserInfo={NSLocalizedDescription=User cancelled the login process.}
显然,最近的一次更新修复了几个人的问题:我和你的错误相同,但在更新到最新的SDK和Rides应用程序后,我现在得到:“你的应用程序未被授权用于请求的范围”,这可能是因为我的设置不正确。不管怎样,如果你还没有,试着更新。谢谢尼克!我很快就会查出来,告诉你发生了什么。
Error Domain=com.uber.rides-ios-sdk.ridesAuthenticationError Code=25 "User cancelled the login process." UserInfo={NSLocalizedDescription=User cancelled the login process.}