Skip to content

Firestore in not working on Android 4.3. #515

Closed
@umarpazir11

Description

@umarpazir11

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:

  1. 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);
               });

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions