title: Firestore Adding Document || Offline || Callback
body: <p>Not getting the callback on adding document in the collection during <strong>offline</strong>. Its working good in online mode.</p>
  
  <p>However, the document is getting added, and the listeners listening to the collection is getting the added <strong>document</strong> snapshot.</p>
  
  <pre><code>let database = Firestore.firestore()
      let data = prepareRawDataFromObject(model)
      if let data = data {
          printLog(" Collection: \(collection)")
          printLog(" Data Request: \(String(describing: data)) ")
          var documentRef: DocumentReference? = nil
          documentRef = database.collection("collection").addDocument(data: data) { (error) in
              if let error = error {
                  failure()
                  printLog(" Adding Document \(collection): \(error.localizedDescription) ")
              } else {
                  printLog("✅ Document Added successfully...✅")
                  success(documentRef!.documentID)
              }
          }
      }
  </code></pre>