First of all, I apologize for lacking English Skills and forgave me if the question is unclear or wrong.
I am getting this error.
2025-05-16 03:17:33.037 15559-15621 LocalRequestInterceptor com.digitalsphere.threethings W Error getting App Check token; using placeholder token instead. Error: K1.l: Error returned from API. code: 403 body: App attestation failed.
Although everything is fine on debug mode, I got some App Check Error on release mode on Android. While the above log indicates that the Error getting App Check token
, PlayCore
package got the token. Here is the log:
2025-05-16 03:17:29.575 15559-16395 PlayCore com.digitalsphere.threethings I UID: [10448] PID: [15559] IntegrityService : requestIntegrityToken(IntegrityTokenRequest{nonce=sometoken, cloudProjectNumber=1041319410752, network=null})
2025-05-16 03:17:29.577 15559-16396 PlayCore com.digitalsphere.threethings I UID: [10448] PID: [15559] IntegrityService : Initiate binding to the service.
2025-05-16 03:17:29.587 15559-15559 PlayCore com.digitalsphere.threethings I UID: [10448] PID: [15559] IntegrityService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.integrityservice.IntegrityService})
2025-05-16 03:17:29.588 15559-16396 PlayCore com.digitalsphere.threethings I UID: [10448] PID: [15559] IntegrityService : linkToDeath
I have signed the apk file using keytool
and checked the SHA1 and SHA256 hashes and added them to the Android App signature on the firebase.
Since this is on release mode, I have also wrote my main.dart
as the following:
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
await FirebaseAppCheck.instance.activate(
androidProvider: AndroidProvider.playIntegrity,
);
}