uber / uber/rides-android-sdk

Unable to connect error showing inside Uber app (SSO login, sdk 0.9.1, Android 6+)

Open
#123 9 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
293
Forks
132
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm using now SSO auth method and it works fine for android OS 5.x devices.
But Uber application auth page showing error 'Unable to connect' for android 6+ devices.

Code that I use for login:

        com.uber.sdk.android.core.auth.LoginManager uberLoginManager;
        ...
        uberLoginManager.setAuthCodeFlowEnabled(false);
        uberLoginManager.login(Activity activity)

To set-up flow I've registered app like it was described in the manual:
SSO setup manual

Previously I've worked with android sdk com.uber.sdk.android.core.auth.LoginManager#loginForAuthorizationCode method and saw similar issue on similar devices.

Library version: com.uber.sdk:rides-android:0.9.1

Repro steps, stacktrace, screenshots:

  • Make sure that you have installed Uber application on the device
  • Register app on developer.uber.com/dashboard page (setup redirect page and App Signature)
  • Check out the latest login sample code
  • Change application uber credentials
  • Use White or Black Uber sign-in buttons

Expected Behavior:

  • User should see accept scopes page without errors.

Actual Result:

  • 'Unable to connect' error
screen shot 2018-04-12 at 5 52 29 pm_update

When user clicks 'OK' on the pop-up, I see error 'connectivity issue' inside my application:

04-12 19:13:40.834 6924-6924/ D/LoginActivity: onActivityResult requestCode:[1001] resultCode [0]
04-12 19:13:40.834 6924-6924/ E/UberUtil$LoginCallback: onLoginError, name = CONNECTIVITY_ISSUE

Devices, used for test:

  • Samsung Galaxy S6, SM-920F, Android 6.0.1
  • Samsung Galaxy S7, sm-g930f, Android 6.0.1
  • HTC Nexus 9, Android 7.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Android login sample and the com.uber.sdk.android.core.auth.LoginManager.login(Activity) SSO flow, using rides-android 0.9.1 on Android 6 or 7 with the Uber app installed. Reproduce the CONNECTIVITY_ISSUE result and compare it with the working Android 5.x flow; done means the accept-scopes page opens without the “Unable to connect” error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.