FadyFouad
FadyFouad

Reputation: 948

Cloud_firestore firestore not working in release mode

When trying to retrieve data from firestore in release mode but it is not working, I can send and get data in debug mode without any warning.

Firestore Rules:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write: if
          request.time < timestamp.date(2022, 7, 19);
    }
  }
}

Packages added :

  firebase_core: ^1.5.0
  cloud_firestore: ^2.5.0

Upvotes: 2

Views: 398

Answers (1)

FadyFouad
FadyFouad

Reputation: 948

  • I removed the build files in the android folder.

  • I added SHA certificate fingerprints (release and build).

  • also changed signingConfig in build.gradle to signingConfig signingConfigs.release

now its works in debug and release mode

Upvotes: 2

Related Questions