Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[FR]: Add multi-app support for Firebase Analytics #1299

Open
@epaezrubio

Description

Description

Please add support in the Unity Firebase SDK for obtaining a FirebaseAnalytics instance tied to a specific FirebaseApp, similar to other modules like FirebaseAuth.GetAuth(app) and FirebaseRemoteConfig.GetInstance(app).

API Proposal

namespace Firebase.Analytics
{
 public class FirebaseAnalytics
 {
 /// Returns the FirebaseAnalytics instance for the given FirebaseApp.
 public static FirebaseAnalytics GetAnalytics(FirebaseApp app);
 
 /// Logs an event to Firebase Analytics.
 public void LogEvent(string name);
 
 /// Static method to use the default app instance
 public static void LogEvent(string name, Parameter[] parameters);
 }
}

Usage:

FirebaseApp customApp = FirebaseApp.Create(new AppOptions() { /* ... */ }, "CustomApp");
FirebaseAnalytics analytics = FirebaseAnalytics.GetAnalytics(customApp);
analytics.LogEvent("custom_event");

Firebase Product(s)

Analytics

Targeted Platform(s)

All platforms

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /