I recently started playing with Firebase, but I cannot completely understand its relation with Google Play Services. I know that Firebase is a mobile platform, and on Android it is based on Google Play Services, but why there are some modules with the same name of the ones of Google Play Services?
For example, in my build.gradle
I can have:
com.google.android.gms:play-services-auth:9.4.0
com.google.android.gms:play-services-ads:9.4.0
but also:
com.google.firebase:firebase-auth:9.4.0
com.google.firebase:firebase-ads:9.4.0
I see that on Firebase documentation there is the list of available components (and note that the last one is actually a Google Play Services module):
com.google.android.gms:play-services-appindexing:9.4.0
The same list for Google Play Services is much longer, so some modules are not available using only Firebase dependencies. Which dependencies should I use and why? Can I use mixed dependencies?
On this new Firebase (from May 18th), Google added a few existing services to it. Google Play Services already had features like: Analytics, AdMob, Test Lab, etc. And you could use them from your Google Developer Console.
But then, they decided to merge some of those features with firebase. This way, you can have all of the features "together" on your Firebase Console. They are now unified to give your users a better experience and to help you (as a developer) easily manage your project.
So, if you want to use firebase, you should use the firebase dependencies. The Google play dependencies are meant for projects created on the Google Developer Console.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With