Skip to content

Support multiple firebase app id/project id  #2726

Open
@tobecrazy

Description

@tobecrazy

What feature would you like to see?

We would like firebase initial support multiple app-id/project , For example.
We have an project own by location A which use firebase push service which use firebase account A, now we wanna integrate firebase crashlytics and performance, but we must use account B own by location B. So we wanna when collect crash/performance use B , push with A .
I did some research , firebase have an API FirebaseOptions which is support initial multiple services account. So could you please implement this for crashlytics ?

https://github.com/firebase/snippets-android/blob/14cfefcaf00f9aae6f613281f46000d15f9047be/firebaseoptions/app/src/main/java/devrel/firebase/google/com/firebaseoptions/MainActivity.java

Describe the feature you would like to add, ideally proposing a specific API.

When we get a instance from https://github.com/firebase/firebase-android-sdk/blob/master/firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/FirebaseCrashlytics.java
@NonNull public static FirebaseCrashlytics getInstance(String name) { final FirebaseApp app = FirebaseApp.getInstance(name); final FirebaseCrashlytics instance = app.get(FirebaseCrashlytics.class); if (instance == null) { throw new NullPointerException("FirebaseCrashlytics component is not present."); } return instance; }

Pls refer to :

public static FirebaseApp getInstance(@NonNull String name) {

BTW ,depends lib as below

  • com.google.firebase:firebase-common:20.0.0
  • com.google.firebase:firebase-crashlytics-ndk:18.0.0

How would you use it?

Suppose for collect crash/performance for our app.

Tell us how you'd use this feature in your app.

Activity

google-oss-bot

google-oss-bot commented on Jun 10, 2021

@google-oss-bot
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

tobecrazy

tobecrazy commented on Jun 15, 2021

@tobecrazy
Author

@aguatno @sheepmaster @jamesdaniels Do we have plan to implement this ?

aguatno

aguatno commented on Jun 15, 2021

@aguatno

Hi @tobecrazy We appreciate you logging this feature request and going to the effort to explain it. I agree that this could be a potentially useful change.

I've logged this feature request so we can track it internally so engineers and product can view it as well, and will leave this open here in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @tobecrazy@google-oss-bot@aguatno

        Issue actions

          Support multiple firebase app id/project id · Issue #2726 · firebase/firebase-android-sdk