I've registered the Android and iOS versions of my Flutter app for AppCheck but it doesn't seem to work. I chose App Attest instead of DeviceCheck for iOS since it was more simple and AppCheck is initialized in the main function when the app starts. I followed all the steps in the docs but it's not working. Now that I'm trying to use Firestore I'm getting these errors:
2022-08-21 21:05:15.939832+0300 Runner[62843:4842857] 9.2.0 - [FirebaseFirestore][I-FST000001] AppCheck failed: 'The operation couldn’t be completed. Too many attempts. Underlying error: The operation couldn’t be completed. The server responded with an error:
- URL: https://firebaseappcheck.googleapis.com/v1/projects/globe-rebrand/apps/1:521611501234:ios:b441db59d1e4181485f3ab:exchangeDeviceCheckToken
- HTTP status code: 400
- Response body: {
"error": {
"code": 400,
"message": "App not registered: 1:521611501234:ios:b441db59d1e4181485f3ab.",
"status": "FAILED_PRECONDITION"
}
}
'
2022-08-21 21:05:16.504869+0300 Runner[62843:4843044] 9.2.0 - [FirebaseFirestore][I-FST000001] WriteStream (155018878) Stream error: 'Permission denied: Missing or insufficient permissions.'
2022-08-21 21:05:16.505803+0300 Runner[62843:4843044] 9.2.0 - [FirebaseFirestore][I-FST000001] Write at users/ET41oMbo0bVcAAx0hv3QacIYfqC2 failed: Missing or insufficient permissions.