-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Firebase Auth UI not showing sign in flow when offline #1585
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
Comments
@NerdyAdventurer there are a few things that stand out to me here:
|
Actually I tried the changes you suggested but this time with my Wifi turned on, it did shows login buttons. so I revert the changes it worked when wifi turned on, but not when the wifi turned off. May I ask why it necessary to have internet connection just to show couple of sign in buttons? are not they just couple of buttons on an activity/fragment? |
You shouldn't need WiFi to show the sign-in buttons at all. We don't use
the internet until you click one. I suspect there is something else going
on. To confirm, you could download the sample app in this repo and try it
while offline.
…On Thu, Feb 21, 2019, 8:26 PM nerdyadventurer ***@***.***> wrote:
Actually I tried the changes you suggested but this time with my Wifi
turned on, it did shows login buttons. so I revert the changes it worked
when wifi turned on, but not when the wifi turned off.
May I ask why it necessary to have internet connection just to show couple
of sign in buttons? are not they just couple of buttons on an
activity/fragment?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1585 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AIEw6qF-Fc-cGVfYguJ9xCYeIy5F2hNcks5vP3FggaJpZM4bHHcU>
.
|
I was also surprised why does it work with Wifi. Before all this I tried to use the app in the repo just downloading the app folder, it needs lot of work to get it to work since its not a complete project. Can please give me steps to get it to work? |
@samtstern I was considering to use authUI for production, with this experience, restrictions of authUI and bugs on this repo it seems to me that this is not suitable for production app. |
@NerdyAdventurer to run the sample app:
That said I realize that you are right (I was mistaken about the flow). We cancel the sign-in flow if there is no internet available. It happens here in
I think this is the right behavior if SmartLock is enabled, however in the case where SmartLock is disabled we should probably allow you to show the sign-in buttons and then fail only on action. |
@samtstern side question, does the firebase auth ui comes with a forgot password screen, I cannot see any links to such thing? no docs either. |
This has been fixed and released in version |
First I asked a question on SO but there was no solution. This may be a bug or my mistake.
Step 2: Describe your environment
Step 3: Describe the problem:
When running the app firebase auth ui sign in flow is not show, instead shows the main activity, which in this case a blank constraint layout.
Steps to reproduce:
Observed Results:
logcat
output, etc.Logcat is empty.
Shows the main activity (which is black in this case)
Expected Results:
Showing the sign in flow with Google sign in, email sign in buttons and etc.
Relevant Code:
dependencies
MainActivity.kt
Please help
The text was updated successfully, but these errors were encountered: