Relative Content

Tag Archive for flutterfirebase

Firebase- adding multiple flutter apps

I need to add another flutter app to my firebase console but I can’t figure out how to. It usually has a “add app” button which leads to options which specify which kind of app you’d like to add. Please refer to the picture, this is what I see. How can I add another app?

Should I add the firebase_options.dart and firebase.json (from Firebase) to my repository?

I added firebase to my Flutter app.
Two configuration files have been added “firebase_options.dart” and “firebase.json”.
Both files contain “apiKey”, “appId”, “messagingSenderId”, “projectId”, etc.
I researched and found older posts in which the google-services.json was still there and it wasn’t really clear whether it should go into the repo or not.
I didn’t find a clear statement anywhere as to whether the firebase.json has to be in the repository or not.

I have a problem with dropdown button in flutter

this error appear after i delete a category however it deletes from firebase:
Exception has occurred.
_AssertionError (‘package:flutter/src/material/dropdown.dart’: Failed assertion: line 948 pos 15: ‘items == null || items.isEmpty || value == null ||
items.where((DropdownMenuItem item) {
return item.value == value;
}).length == 1’: There should be exactly one item with [DropdownButton]’s value: Christmass.
Either zero or 2 or more [DropdownMenuItem]s were detected with the same value)

when i choose fb project to link my flutter app with i see” Which Android application id (or package name) do you want to use for this configuration

when i try to connect flutter with firebase
i type flutterfire configure
and choose a project
and i got asked :
Which Android application id (or package name) do you want to use for this configuration, e.g. ‘com.example.app’?
what should i write
i tried to write my app package name like ‘com.appname.appname_app’
and i got that error
Failed to create Android app for project diera-dev. See firebase-debug.log for more info.

Backend Integration Issue

I’m working on a Flutter application where I’m trying to send a request to the backend for user authentication and other pages. However, I’m encountering an issue where the backend is not sending the real-time token from the database as expected.