Check in your Firebase console that "anonymous auth" is allowed. It should solve your problem.
Also check INTERNET permission in your manifest. It so obvious, but...
Good Luck.