title: Callback is not Trigger when app is is background/Minimized
body: <p>I have Implemented MVVM architecture and it is working good when app is in foreground but when i minimize the app, repository send the data to view model and view model to activity but the callback is not called until i resume the application.
  Method is Repository:</p>
  
  <p>// Method for new order and its process, and listening the connects collection</p>
  
  <pre><code>fun connects(driverId: String, connectsSnapshot: (QuerySnapshot?) -&gt; Unit) {
      if (connectsRef!=null){
          connectsRef?.remove()
          connectsRef=null
      }
      this.connectsSnapshot = connectsSnapshot
      connectsRef = FirebaseFirestore.getInstance().collection("connects").whereEqualTo("driver_id", UserDto.getInstance().id).whereEqualTo("status", "new").orderBy("created", Query.Direction.DESCENDING).limit(1)
      .addSnapshotListener { snapshots, e -&gt;
          if (e != null) {
              connectsSnapshot (null)
              return@addSnapshotListener
          }
          System.out.println("==&gt;ListnerHit")
          connectsSnapshot (snapshots)
      }
  }
  </code></pre>
  
  <p>this one send data to view model </p>
  
  <pre><code>val mutableLiveDataForConnect = MutableLiveData&lt;QuerySnapshot&gt;()
      val mObserverForConnect: Observer&lt;QuerySnapshot&gt; = Observer {
          getView().connectListener(it)
      }
  
  
   fun getConnectsData(driverId: String)
      {
           repository.connects(driverId){
               mutableLiveDataForConnect.postValue(it)
               System.out.println("==&gt;ViewModel")
           }
      }
  </code></pre>
  
  <p>this one also get called but i am not able to receive the data on activity when app is minimized. it  works fine when i move the code to acitivty but i need to move the code to repository.</p>