android - Firebase.setAndroidContext while working with an Activity and multiple Services -
i'm using firebase main activity , couple of services.
how , when should call firebase.setandroidcontext(context)?
in documentation, firebase suggests call in activity.oncreate() (see setup firebase on android).
however, how affect services? , should set them? may run before activity, , vice versa.
the firebase documentation refer says:
if android app has multiple activities, add code application class. otherwise add in main activity.
if have services, put in application class.
Comments
Post a Comment