Skip to content

FirebaseApp.configure not setting options #29856

@nikeshjobanputra

Description

@nikeshjobanputra
Future<void> loadFromFirebase() async {

  var options = new FirebaseOptions(
    googleAppID: "***",
    apiKey: "**",
    databaseURL: "**",
  );
  
  final FirebaseApp app = await FirebaseApp.configure(
    name: "name", 
    options: options
  );

  var database = new FirebaseDatabase(app: app);
}

When app is created the options property shows a number of errors

image

Then when creating database the databaseURL is null which means it somehow has not been set up correctly in app (as my understanding is that it should grab it from app)

The logs don't indicate anything about this issue. What am I missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    p: firebaseFirebase pluginsp: firebase_databaseThe Firebase Database pluginpackageflutter/packages repository. See also p: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions