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

Where to define App Name #124

Open
1074f opened this issue Mar 4, 2024 · 1 comment
Open

Where to define App Name #124

1074f opened this issue Mar 4, 2024 · 1 comment
Labels

Comments

@1074f
Copy link

1074f commented Mar 4, 2024

I have tried to adjust collections and App Name with the params in firebase_chat_core.dart on line 20


  /// Config to set custom names for rooms and users collections. Also
  /// see [FirebaseChatCoreConfig].
  FirebaseChatCoreConfig config = const FirebaseChatCoreConfig(
    'my_app',
    'chat_rooms',
    'chat_users',
  );

But the app boot with an App named "DEFAULT"

Restarted application in 713ms.                                                                                                                                                                                                                                 
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: [core/duplicate-app] A Firebase App named "[DEFAULT]" already exists                                                                                                                    
#0      MethodChannelFirebase.initializeApp (package:firebase_core_platform_interface/src/method_channel/method_channel_firebase.dart:134:11)                                                                                                                   
<asynchronous suspension>                                                                                                                                                                                                                                       
#1      Firebase.initializeApp (package:firebase_core/src/firebase.dart:43:31)                                                                                                                                                                                  
<asynchronous suspension>                                                                                                                                                                                                                                       
#2      main (package:example/main.dart:10:3)                                                                                                                                                                                                                   
<asynchronous suspension>                                       
@1074f 1074f added the question label Mar 4, 2024
@demchenkoalex
Copy link
Member

I will be removing this package soon, please just copy the code and adjust as needed - it is not much anyway if you remove all "customise" options from the codebase

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

No branches or pull requests

2 participants