Closed
Description
Describe your environment
- Android device: Urovo Smart POS Payment Terminal i9000S
- Android OS version: 4.3
- Google Play Services version: 3.2.0'
- Firebase/Play Services SDK version: 'com.google.firebase:firebase-firestore:17.0.1'
Describe the problem:
I am trying to insert data on android 4.3 device and its not working but its working on API level 21 and greater. And there is no error in logcat.
Steps to reproduce:
- Run firestore code to insert data in android 4.3 device.
Observed Results:
No error in logcat.
Expected Results:
- What did you expect to happen?
Data insertion in firestore.
Relevant Code:
FirebaseFirestore db = FirebaseFirestore.getInstance();
db.collection("TransPayment:" +prefManager.getDeviceID()).document(transPayment.getTransactionId())
.set(transPaymentList.get(indexTrans))
.addOnSuccessListener(documentReference ->{
Log.d("Firestore", "DocumentSnapshot added with ID: ");
})
.addOnFailureListener(e -> {
Toast.makeText(LogActivity.this, "Firestore Trans Error", Toast.LENGTH_SHORT).show();
Log.w("Firestore", "Error adding document", e);
});