title: Unable to get DatabaseReference and FIrebaseAuth currentUser on a remote(separate from main thread) process
body: <p>I want to create a separate process that will receive and update Firebase Database using a separate process so that it will keep running even the application(Main Thread) is stopped or killed. However it returns me exception below.</p>
  
  <p>Error</p>
  
  <pre><code>09-22 22:39:02.229 1669-1669/com.tradesomev4.tradesomev4:remote E/AndroidRuntime: FATAL EXCEPTION: main
                                                                                Process: com.tradesomev4.tradesomev4:remote, PID: 1669
                                                                                java.lang.RuntimeException: Unable to create service com.tradesomev4.tradesomev4.m_Helpers.LocationService: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. 
                                                                                    at android.app.ActivityThread.handleCreateService(ActivityThread.java:3005)
                                                                                    at android.app.ActivityThread.access$1800(ActivityThread.java:178)
                                                                                    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1553)
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:111)
                                                                                    at android.os.Looper.loop(Looper.java:194)
                                                                                    at android.app.ActivityThread.main(ActivityThread.java:5637)
                                                                                    at java.lang.reflect.Method.invoke(Native Method)
                                                                                    at java.lang.reflect.Method.invoke(Method.java:372)
                                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
                                                                                 Caused by: java.lang.IllegalStateException: FirebaseApp with name [DEFAULT] doesn't exist. 
                                                                                    at com.google.firebase.FirebaseApp.getInstance(Unknown Source)
                                                                                    at com.google.firebase.FirebaseApp.getInstance(Unknown Source)
                                                                                    at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
                                                                                    at com.tradesomev4.tradesomev4.m_Helpers.LocationService.onCreate(LocationService.java:128)
                                                                                    at android.app.ActivityThread.handleCreateService(ActivityThread.java:2995)
                                                                                    at android.app.ActivityThread.access$1800(ActivityThread.java:178) 
                                                                                    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1553) 
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:111) 
                                                                                    at android.os.Looper.loop(Looper.java:194) 
                                                                                    at android.app.ActivityThread.main(ActivityThread.java:5637) 
                                                                                    at java.lang.reflect.Method.invoke(Native Method) 
                                                                                    at java.lang.reflect.Method.invoke(Method.java:372) 
                                                                                    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959) 
                                                                                    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754) 
  </code></pre>
  
  <p>Manifest</p>
  
  <pre><code>    &lt;service
          android:name=".m_Helpers.LocationService"
          android:enabled="true"
          android:exported="true"
          android:process=":remote"&gt;
  
      &lt;/service&gt;
  </code></pre>
  
  <p>Service Java</p>
  
  <pre><code> @Override
  public int onStartCommand(Intent intent, int flags, int startId) {
      Log.e(DEBUG_TAG, "onStartCommand");
      super.onStartCommand(intent, flags, startId);
      return START_STICKY;
  }
  
   @Override
  public void onCreate() {
      Log.e(DEBUG_TAG, "onCreate");
  
          databaseReference = FirebaseDatabase.getInstance().getReference("https://project-7989634332026765831.firebaseio.com/");
          firebaseUser = FirebaseAuth.getInstance().getCurrentUser();
  }
  </code></pre>
  
  <p>hoping for your kind response :)</p>