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.

onActivityResult not fired!

See original GitHub issue

I’m using the new version 0.4.1 of the auth library (on a device with Android 6.0.1).

I’m trying to use the Google sign in provider, launching this intent:

startActivityForResult(
                AuthUI.getInstance()
                        .createSignInIntentBuilder()
                        .setProviders(
                                AuthUI.EMAIL_PROVIDER,
                                AuthUI.GOOGLE_PROVIDER)
                        .build(),
                RC_SIGN_IN);

When i login with email&password everythings works fine, but when i try to login with the google sign in button, i select the account and i can see a loader for about 3-4 seconds: then the loader disappears and nothing else happens, i still remain into the activity with the two login buttons. onActivityResult isn’t fired and i don’t know if login was successful or not.

Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:39 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
fabriciointeramacommented, Aug 15, 2016

Any login method makes my app to close. No error msg is printed. It just closes.

1reaction
itrevexcommented, Jul 10, 2019

I was having this issue because I had set no history for the activity calling the firebase ui in the manifest file. Removing android:noHistory="true" from the activity inside manifest solved the problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

OnActivityResult not working (Android) - Stack Overflow
I am using a simple function OnActivityResult, but it is not returning me desired results. Please see my code and tell me where...
Read more >
Onactivityresult not working in android studio - CodeProject
I have write the above code to pick a file and do something but it is not working. In the end i have...
Read more >
onActivityResult not working? (Android forum at Coderanch)
I am working on an app and why somethings are not working please assist:. In my code, the onActivityResult is not seeming to...
Read more >
Getting a result from an activity - Android Developers
... Communicate with fragments · Working with the app bar · Displaying dialogs with DialogFragment ... Restrictions on non-SDK interfaces.
Read more >
Undocumented startActivityForResult behavior for Fragment
When we call Fragment's startActivityForResult (note: NOT activity?. · When Android SDK returns onActivityResult , the requestCode has been altered. · The P...
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