-
Notifications
You must be signed in to change notification settings - Fork 1.9k
No Internet fails #661
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
Hmmm, that seems to be a problem with the Auth team because we have an |
one thing you might try is to check if the dialog is not null in
onDestroy() and if so call dialog.dismiss() on it. then set dialog = null
for paranoia. that also helps prevent memory leaks.
…On Tue, Apr 18, 2017 at 2:14 PM, Alex Saveau ***@***.***> wrote:
Hmmm, that seems to be a problem with the Auth team because we have an
onComplete listener that should remove the dialog
<https://github.com/firebase/FirebaseUI-Android/blob/version-2.0.0-dev/auth/src/main/java/com/firebase/ui/auth/ui/email/CheckEmailFragment.java#L191>
if the request fails. My guess is that they don't have a timeout for the
request, but I'd have to debug to make sure.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#661 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-9lRLlzi59HAJZ-zKvyckJErKaPJYKks5rxSfGgaJpZM4M36Fx>
.
|
Oh true. That should happen actually... I'll look into it. |
or you could add a check for the network before calling auth and if no
connectivity just poup a warning.
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
/**
* Generic reusable network methods.
*/
public class NetworkHelper {
/**
* @param context to use to check for network connectivity.
* @return true if connected, false otherwise.
*/
@SuppressWarnings("BooleanMethodIsAlwaysInverted")
public static boolean isOnline(Context context) {
ConnectivityManager connMgr = (ConnectivityManager)
context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();
return (networkInfo != null && networkInfo.isConnected());
}
}
…On Tue, Apr 18, 2017 at 2:52 PM, Alex Saveau ***@***.***> wrote:
Oh true. That should happen actually... I'll look into it.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#661 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-9le9uWrk2-fP5M5LNy020loGh80Dlks5rxTCHgaJpZM4M36Fx>
.
|
@LeeHounshell Yeah, but ideally we don't have to care about that. I'd prefer to keep problems from Firebase Auth separate from FirebaseUI-Auth, but that's @samtstern's call. As for your issue, I can't repro and the bug shouldn't happen: https://github.com/firebase/FirebaseUI-Android/blob/master/auth/src/main/java/com/firebase/ui/auth/ui/FragmentBase.java#L22. |
Do you have any more details on how to repro the issue? That would really help debug! 😄 |
I have a similar problem. when the user opens the app, if there is no network connection, the screen stays blank waiting for internet connection. the user can not interact with the app that include pressing the back button. |
@gsalehali we're going to be getting rid of those pesky progress dialogs anyway, so this issue should be fixed. 😃 |
I can reproduce by doing the following (For google auth): (For email auth): Firebase UI version 1.2.0 |
every thing runs fine when there is internet connection but when i turn off internet //code
|
I have a request for this too. There isn't a way to tell if there is no internet connection once the LoginActivity is shown. |
when there is no Internet the App Open the main Activity Instead of LoginActivty. |
This is a very old issue which I believe was fixed in one of @SUPERCILEX's auth rewrites. Closing this out, if anyone experiences an issue with FirebaseUI and connectivity detection please open a new issue! |
Step 1: Are you in the right place?
yes
Step 2: Describe your environment
Step 3: Describe the problem:
Can not interact with tablet after attempt to login using email with no Internet connectivity.
Steps to reproduce:
Observed Results:
Spinner appears: 'Checking for existing accounts.' The spinner runs forever. I can not interrupt it.
The test app runs forever but only shows 'Checking for existing accounts.' There is no way to get out
except turn off the tablet or kill the test app.
Expected Results:
I expected a message stating "No Internet Available" and a return to my Login activity.
It would be nice if the message also had a button to take the user directly to 'Settings'
so Internet can be easily enabled.
Relevant Code:
The text was updated successfully, but these errors were encountered: