google.firebase.vertexai.v1beta.GenerativeService.GenerateContent are blocked

Hi,

As the title suggests I am getting that error when running my flutter app on an Android Device. The same code works when running the flutter app on the web.

I am not using Vertexai and have all the packages imported as below, and have sucessfully connected my app to Firebase.

Has anyone else faced this issue? Is there any workaround?

Attaching the snippet of the package

  firebase_core: ^3.13.1
  firebase_ai: ^2.0.0
void main() async{
  WidgetsFlutterBinding.ensureInitialized();
  await Firebase.initializeApp(
    options: DefaultFirebaseOptions.currentPlatform,
  );
  // await FirebaseAuth.instance.signInAnonymously();
  runApp(const MyApp());
}

floatingActionButton: FloatingActionButton(
        onPressed: () async{
          try{
            setState(() {
              aiResp = "Generating...";
            });
            final googleAI = FirebaseAI.googleAI(auth: FirebaseAuth.instance);
            final model = googleAI.generativeModel(model: 'gemini-2.0-flash');
            final prompt = [Content.text('Write a hiku about Flutter')];
            final response = await model.generateContent(prompt);
            setState(() {
              aiResp = response.text!;
            });
          }
          catch(err){
            print("Error: ${err.toString()}");
            setState(() {
              aiResp = "An Error Occurred";
            });
          }
        },
        tooltip: 'AI',
        child: const Icon(Icons.edit),
      ),