Skip to content

Google Analytics for Firebase has not been created. Please, configure Firebase by calling [FIRApp configure] #1212

@MuhammadSafyan

Description

@MuhammadSafyan

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2020.3.18
  • Firebase Unity SDK version: 8.9.2
  • Source you installed the SDK: .unitypackage
  • Problematic Firebase Component: no_ (Auth, Database, etc.)
  • Other Firebase Components in use: no_ (Auth, Database, etc.)
  • Additional SDKs you are using: _no (Facebook, AdMob, etc.)
  • Platform you are using the Unity editor on: _mac (Mac, Windows, or Linux)
  • Platform you are targeting: _ios (iOS, Android, and/or desktop)
  • Scripting Runtime: _IL2CPP (Mono, and/or IL2CPP)

[REQUIRED] Please describe the question here:

I followed this setup : https://firebase.google.com/download/unity
and added in the main screen
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task => {
dependencyStatus = task.Result;
if (dependencyStatus == DependencyStatus.Available) {
DebugLog("Enabling data collection.");
FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);

  DebugLog("Set user properties.");
  // Set the user's sign up method.
  FirebaseAnalytics.SetUserProperty(
    FirebaseAnalytics.UserPropertySignUpMethod,
    "Google");
  // Set the user ID.
  FirebaseAnalytics.SetUserId("uber_user_510");
  // Set default session duration values.
  FirebaseAnalytics.SetSessionTimeoutDuration(new TimeSpan(0, 30, 0));
  firebaseInitialized = true;
    } else {
      Debug.LogError(
        "Could not resolve all Firebase dependencies: " + dependencyStatus);
    }

When i build for Xcode following errors
Screenshot 2021-12-22 at 10 51 51 AM

When i Build for android every thing is OK and i can see events in Debug view as well as dashboard

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