We will first see how we can implement anonymous authentication in Android:
- Fire up your Android Studio. Before doing anything, we need to get some dependencies first, speaking, of course, of the Firebase Auth library that can be downloaded by adding this line to the build.gradle file under the dependencies section:
compile 'com.google.firebase:firebase-auth:11.0.2'
- Now simply Sync and you will be good to start adding Firebase Authentication logic. Let us see what we're going to get as a final result:

A simple UI with a button and a TextView, where we put our ...