I wanted to use Firebase Analytic in my project.But I am confused with the three approaches I come across while reading how to use Firebase Analytics.
1 Using Activity. 2 Using Application. 3 Using Content Provider.
I have also scene the following post.
[Question]:calling-firebase-analytics-getinstance-every-time-vs-storing-instance Calling Firebase Analytic's getInstance() every time vs. storing instance as a static variable in Application class
[Blog]: how-does-firebase-initialize-on-android https://firebase.googleblog.com/2016/12/how-does-firebase-initialize-on-android.html
So, Friends I would like to know in which scenario we should prefer the following approach.How Activity cycle affect the analytic data posted to firebase if I use Activity context vs Application Context.I am worried that Firebase might use the context to derive something about life-time or flow of application.