firebase / firebase/firebase-android-sdk
Can't login through provider from DialogFragment
- Dominant language
- Java
- Stars
- 2.6k
- Forks
- 710
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 31
Description
### Describe your environment
Android Studio version: 4.1 RC 1
Firebase Component: Firebase Authentication
Component version: 19.3.2
### Describe the problem
Hello. I have the problem.
When i try to sign in by _startActivityForSignInWithProvider()_ method :
```kotlin
val provider = OAuthProvider.newBuilder("twitter.com").build()
Firebase.auth
.startActivityForSignInWithProvider(this, provider)
.addOnSuccessListener {
onSignInSuccess()
saveAuthorizationData(it.toRealmAuthorization())
}
.addOnFailureListener { onSignInError(it) }
```
from Activity/Fragmen - It's all right. I can log in with my Twitter provider.
**But (!) when i try to sign in from DialogFragment, which nested into parent fragment, application is stops working. There is no information in logs.**
That's what's going on:
The android application first redirects me to the browser. In browser I sign in into Twitter account, then it starts redirecting me to the application again. I see progress bar, than dimmed desktop screen. Since that moment nothing happens.
Please help, because it makes no sense to call an authorization request outside the dialog.


Contributor guide
Assessment
This issue has not been assessed yet.