Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throws 'options != null': is not true #19

Closed
icodelifee opened this issue Nov 16, 2021 · 2 comments
Closed

Throws 'options != null': is not true #19

icodelifee opened this issue Nov 16, 2021 · 2 comments

Comments

@icodelifee
Copy link

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

@pr-Mais
Copy link
Contributor

pr-Mais commented Nov 16, 2021

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

@pr-Mais
Copy link
Contributor

pr-Mais commented Nov 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants