Skip to content Skip to sidebar Skip to footer

Using Firebase App Check Is Not Working (debug)

I am not able to settle this issue when implementing the new App Check feature from Firebase. When uploading files to Firebase Storage it fails with an error Caused by: java.io.IO

Solution 1:

Run the App on Physical device. I was facing the same issue and but when i run the app on a physical device it is gone! Ensure you main run app funtion is like this

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp();
  await FirebaseAppCheck.instance.activate(webRecaptchaSiteKey: 'recaptcha-v3-site-key');
  runApp(MyApp());
}

Solution 2:

I have used a physical device, in my opinion, which is far better to use than an emulator. All you need is SHA 256 key and register your application in the safety net in project settings. To get SHA 256 key, just click on the Gradle tab in the leftmost corner in android studio. Click android folder within your application folder and run signiningReport. It will generate SHA 256 key in the terminal and copy it into the safety net. That's it.

Solution 3:

Since we would need more information from you in order to help you debug this issue, could you please reach out to Firebase support directly for personalized help in troubleshooting? You can then report back your case ID so we can take a closer look.

Solution 4:

make sure to update all the Firebase related libraries first and try again. it shall work. 👍

Post a Comment for "Using Firebase App Check Is Not Working (debug)"