Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Is it possible to use the emulator suite with Firebase (Dart) #410

Open
@bynicodevelop

Description

@bynicodevelop

I wish I could use the firebase emulator with authentication and firestore with this package : https://pub.dev/packages/firebase

But it seems to me that the useEmulator method does not exist.
Is there a solution ?

I tried this this, but it doesn't work.

import 'package:firebase/firebase.dart';

Future<void> main() async {
  App app = initializeApp(
    apiKey: apiKey,
    appId: appId,
    messagingSenderId: messagingSenderId,
    projectId: projectId,
  );

  Auth authInstance = auth(app);

  authInstance.useEmulator("HOST:PORT"); // <=  it doesn't work
}

I specify that this script is then transformed into JS with the command

Thanks for your feedback

dart build js -o OUTPUT INPUT

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions