-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Receiving onLoginCancel after successful login on some devices #73
Comments
Hey @DaniloT, sorry for the delay, I was OOO. I think you may be getting an intent flag into the behavior so onActivityResult is being called with a cancel. Please see http://stackoverflow.com/questions/7910840/android-startactivityforresult-immediately-triggering-onactivityresult and validate your activity flags in your manifest/programmatically. |
@tyvsmith thanks for the reply, but I am not setting any flags in my manifest for singletask or singletop, and I commented out all my intent calls to simplify the screen as much as possible (so no intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) being called either), and I am still getting this error on android 4.4.2 devices. Also, I placed a log.d inside onActivityResult and it is not being called as the login screen is launched like on that issue, it is properly called after it ends, but with resultCode 0 (Activity.RESULT_CANCELED) and a null data intent. Below my login activity as it is on the manifest (it is the activity that launches the app)
|
Hi there facing the same issue as specified by @DaniloT, have you resolved it? |
@priyanshugupta45 For me I had to limit my app on the manifest to only work on androids with api versions 20+ as the issue persists on apis under that version, haven't received a reply about this issue since that last one from @tyvsmith 15 days ago. |
Sorry for the delay folks, this is on our roadmap to investigate and try to resolve if necessary early next week. |
Hello, I've faced the issue on Samsung Tab 3 devices (OS 4.4.2). Then I've tried to switch login option to just sign-in using installed Uber app. I've just changed the call to this one:
like @DaniloT did. And I see onLoginCancelled callback method being called when user clicks ALLOW button on the permissions confirmation screen. This means There is no option to get signed-in to uber integrated app on the Samsung Tab 3. |
I am having an issue where some devices of mine receive onLoginCancel after a SSO attempt, even when the user clicks on "Allow" after the permission screen, though other devices it works as intended and I correctly receive onLoginSuccess. So far, it seems the issue is related to Android OS 4.4.2, as all 3 devices I have that presented this issue are on that version, and the successful ones were on higher OS versions. The devices that presented the error were:
I am using sdk version 0.6.0 and the devices all have Uber app version v4.144.11 installed and working. The user just clicks login, uber app opens, asks for permission, user hits "Allow", gets sent back to login screen with "Login cancel" message. I have made a video showing the behavior (the message at the end reads "User cancelled the login" in portuguese, hope that is ok): https://youtu.be/Uh7oxd6Vz4s
Below is my login code extracted from my app (the screen is just some images/text with a login button)
The text was updated successfully, but these errors were encountered: