You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
{
DependencyStatus dependencyStatus = task.Result;
if (dependencyStatus == DependencyStatus.Available)
{
// Create and hold a reference to your FirebaseApp,
// where app is a Firebase.FirebaseApp property of your application class.
FirebaseApp app = FirebaseApp.DefaultInstance;
initialized = true;
FirebaseAnalyticsController.Instance.InitializeFirebaseAnalytics();
FirebaseCrashlyticsController.Instance.InitializeFirebaseCrashlytics();
FirebaseRemoteConfigController.Instance.InitializeFirebaseRemoteConfig();
FirebaseCloudMessagingController.Instance.InitializeFirebaseCloudMessaging();
// Set a flag here to indicate whether Firebase is ready to use by your app.
}
else
{
Debug.LogError($"Could not resolve all Firebase dependencies: {dependencyStatus}");
// Firebase Unity SDK is not safe to use here.
}
});
FirebaseMessaging.MessageReceived += OnMessageReceived;
FirebaseMessaging.TokenReceived += OnTokenReceived;
//Debug.Log("Firebase Messaging Initialized");
// This will display the prompt to request permission to receive
// notifications if the prompt has not already been displayed before. (If
// the user already responded to the prompt, thier decision is cached by
// the OS and can be changed in the OS settings).
FirebaseMessaging.RequestPermissionAsync().ContinueWithOnMainThread(task =>
{
LogTaskCompletion(task, "RequestPermissionAsync");
});
My first question is; is this methodology is ok to use when multiple Firebase products are together in a project?
When I build on my iPhone logs are saying:
And the last question is when I open my app I can not see my realtime Analytics data suddenly. How should I achieve to see my realtime analytics as soon as the application is opened?
What is your question?
Hi there,
I'm using;
all together in my game:
FirebaseAnalytics.SetAnalyticsCollectionEnabled(true);
Crashlytics.ReportUncaughtExceptionsAsFatal = true;
Firebase Unity SDK Version
12.4.1
Unity editor version
6000.0.30f1
Installation Method
.unitypackage
Problematic Firebase Component(s)
Analytics, Crashlytics, Messaging, Remote Config
Other Firebase Component(s) in use
No response
Additional SDKs you are using
No response
Targeted Platform(s)
Apple Platforms, Android
Unity editor platform
Mac, Windows
Scripting Runtime
IL2CPP
Release Distribution Type
Pre-built SDK from https://firebase.google.com/download/unity
The text was updated successfully, but these errors were encountered: