Home > OS >  DefaultFirebaseOptions not configured for windows
DefaultFirebaseOptions not configured for windows

Time:06-30

[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: Unsupported operation: DefaultFirebaseOptions have not been configured for windows - you can reconfigure this by running the FlutterFire CLI again.

CodePudding user response:

You can initialise using option like this

await Firebase.initializeApp(
// Replace with actual values
options: const FirebaseOptions(
  apiKey: "api key here",
  appId: "app id here",
  messagingSenderId: "messaging id",
  projectId: "project id here",
),

You can get these values from firebase console

  • Related