Skip to content

Seeking Advice: Optimal Integration of Firebase with Nylo #61

Discussion options

You must be logged in to vote

Hi @fredrickreuben,

You could integrate Firebase as per the docs on their site https://firebase.flutter.dev/docs/overview/

I'd recommend calling the initializeApp method inside a provider.
You can create a provider by running this in the terminal.

dart run nylo_framework:main make:provider firebase

Then, open the file lib/app/providers/firebase_provider.dart

Add the initializeApp method and any other Firebase-related code in the provider. Providers are booted at the start of your application.

import 'package:nylo_framework/nylo_framework.dart';

class FirebaseProvider implements NyProvider {
  @override
  boot(Nylo nylo) async {
  await Firebase.initializeApp(
    options: DefaultFirebase…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by agordn52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants