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

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

Open
coolshobin opened this issue Jan 20, 2023 · 1 comment

Comments

@coolshobin
Copy link

  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
Copy link
Contributor

I think you can use this:

FirebaseModule.config().firebaseApp = "app_name"

Does that help?

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