Skip to content

Instantly share code, notes, and snippets.

@SiarheiPilat
Created December 14, 2023 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SiarheiPilat/d85994d2ece8c1ebaae7ca3480bb2cd9 to your computer and use it in GitHub Desktop.
Save SiarheiPilat/d85994d2ece8c1ebaae7ca3480bb2cd9 to your computer and use it in GitHub Desktop.
Simple script to test whether Firebase backend is working.
using UnityEngine;
using Firebase;
using Firebase.Analytics;
public class FirebaseTest : MonoBehaviour
{
void Start()
{
FirebaseApp.CheckAndFixDependenciesAsync().ContinueWith(task => { FirebaseAnalytics.SetAnalyticsCollectionEnabled(true); });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment