Firebase authentication timeout

I am developing an Android app with Firebase. The email and password login process works fine if the device has a good internet connection, but when I do the test in a bad signal location or with a slow connection, the process stays waiting for a long time. the question is, is there any way to set a timeout for firebase authentication ?, the delay is not good for the user. I solved it with an Asynctask issued when the login button was pressed, this Asynctask waits eight seconds and shows a message to the user with the message: the connection is slow, you can wait or quit and try it later, but I think this is the best way with a timeout ...

+3


source to share





All Articles