我正在尝试在我的 Android 应用程序中实现 Uber。对用户进行身份验证时出现错误“未找到身份验证挑战”。
我在 Uber 中创建了一个应用程序,并为该应用程序指定了以下范围,如图所示。
我的重定向 URL 是:http://localhost/auth
在我的 Android 应用程序中,我给出了以下授权调用的范围列表
public static final String SCOPES = "profile history_lite history";
并将参数列表添加到 api。
params.add(new BasicNameValuePair("response_type", Constants.CODE));
params.add(new BasicNameValuePair("client_id", Constants
.getUberClientId(this)));
params.add(new BasicNameValuePair("scope", Constants.SCOPES));
params.add(new BasicNameValuePair("redirect_uri", Constants
.getUberRedirectUrl(this)));
请帮我解决这个问题?
最佳答案
您可以将此适用于 Android 的 Uber SDK 集成到您的应用程序中点击 here .请注意,这仍处于测试版。
关于Android uber 错误 No authentication challenges found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30348821/