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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -