Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When executing Firebase Functions from a Flutter app, the process stops

I executed Firebase Functions in the following way

      result = await FirebaseFunctions.instance.httpsCallable(triggerName).call<void>();

When I run this process, the following error code is displayed, and the process stops

Error getting App Check token. Error: com.google.firebase.FirebaseException: No AppCheckProvider installed.

However, I haven't implemented App Check. How can I resolve this error code and proceed with the subsequent processing?

Also, when checking the logs on the functions side, there are no errors or outputs.

By the way, during debugging, when confirming the operation with breakpoints, the process stops right after executing FirebaseFunctions. However, when I step through, the process continues without any issues...

like image 709
sub Avatar asked Feb 06 '26 11:02

sub


1 Answers

Make sure you're initializing your firebase-project

import 'package:firebase_app_check/firebase_app_check.dart';
import 'package:firebase_core/firebase_core.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(); // Make sure you call this
  FirebaseAppCheck.instance // Only needed if you use App checks
      .installAppCheckProviderFactory(
          AppCheckProviderFactory(
              provider: SafetyNetAppCheckProviderFactory())
      );
  runApp(MyApp());

}
like image 124
Marko Marinkovic Avatar answered Feb 08 '26 03:02

Marko Marinkovic