chat-sdk / chat-sdk-android

Chat SDK Android - Open Source Mobile Messenger
https://chatsdk.co
Other
1.6k stars 613 forks source link

Android : Different firebase account need to be used. (Separate account for firebase for ChatSdk) #741

Open coolshobin opened 1 year ago

coolshobin commented 1 year ago
  1. Is the bug present in the demo Chat SDK project? Not a bug, I would like to know how to change firebaseapp from default to the custom one. I have a separate account for firebase, need to change all configuration for chatSdk to this account. ie for auth, realtime database, Messaging(Push Notification) and storage. Firebase support for multiple projects

  2. What modifications have you made to the Chat SDK? ChatSDK : custom design to chat page. Successful implementation for single firebase account application.

  3. Android Version: All.

  4. Steps taken to reproduce the problem: In ChatSdk Initilization or Sample Api AuthExample

Not able to change the default FirebaseApp to FirebaseApp.initializeApp(this,options,"ChatSdk_account"); // from which i was able to register or Authenticate user from the second firebase account.

  1. Expected result: Configuration to change default FirebaseApp for ChatSdk

  2. Actual result: Trying to access default FirebaseApp account.

  3. Comments:

I had tried to resolve this problem for the past few days.

Thank you in advance.

bensmiley commented 1 year ago

I think you can use this:

FirebaseModule.config().firebaseApp = "app_name"

Does that help?