question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
MathebulaMahlatsecommented, Sep 14, 2018

@luckcoolla I have struggled with similar issue for a week and eventually I managed to get it working. The issue was with app signature. Make sure that you use correct signature.

Try the following:

   keytool -exportcert -alias <your_key_alias> -keystore <your_keystore_path> | openssl sha1 -binary | openssl base64

I have used these values for placeholders

  • <your_key_alias>: androiddebugkey
  • <your_keystore_path>: ~/.android/debug.keystore

if it asks for keytore password, should enter ‘android’ without the quotes.

Reference:

0reactions
luckcoollacommented, Sep 7, 2018

@tyvsmith any updates here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to load error on Android device - Uber Help
Click “LOG-OUT,” this should then show you the login page where you can enter your username and password. Force quit the Uber Eats...
Read more >
Problems downloading the app (Android) | Driving & Delivering
Problems downloading the app (Android). If you're having trouble downloading the application on your Android, go to t.uber.com/and.
Read more >
Single Sign On (SSO) - Developers | Uber
In case the user is not logged into the Uber app, a login screen will appear first. After approving the authentication request, the...
Read more >
Android - Developers | Uber
Native Login with Uber (SSO). The Uber SDK allows for three login flows: Implicit Grant (local web view), Single Sign On with the...
Read more >
Uber SDK Authorization , when tap on login button
Please following the official link which is based on Uber SDK 0.8 where the latest one has the issue which is 0.10. Please...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found