FirebaseExtended / flutterfire_desktop

An early-stage, experimental pure-Dart implementation of Firebase SDKs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Throws 'options != null': is not true

icodelifee opened this issue · comments

On launch, app throws the following error:
Unhandled Exception: 'package:firebase_core_desktop/firebase_core_desktop.dart': Failed assertion: line 35 pos 12: 'options != null': is not true.

Which I think is called due to FirebaseApp initialization in main(), the app is set up for web as well as macOS.
FirebaseConfigs for the different projects are intialized later.
image

The package desktop launches the default Firebase app from dart, which means you have to provide options to Firebase.initializaApp().

A section is added to README to clarify this part, thanks for reporting the issue!