Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

211
Vistas
Checking whether Firebase is initialized successfully in Unity3D?

I've got a Unity application with Firebase integration, and I'd like to handle the case when I have to shut down the Firebase project for various reasons.

So the application will still function relatively normally, slightly differently.

I tried simulating this by messing up the project_id in the google-services.json.

But it didn't cause any errors, the firebase calls are just aren't executed.

Is there a way to check whether the Firebase initialisation is successful or not?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

Yes it is, if you are using Firebase admin SDK on your app you can check it with:

using System;
using System.Threading.Tasks;
using UnityEngine;
using Firebase;

public class FirebaseController : MonoBehaviour
{
    public async Task InitializeFirebase()
    {
        await FirebaseApp.CheckAndFixDependenciesAsync().ContinueWithOnMainThread(task =>
        {
            if (task.Result == DependencyStatus.Available)
            {
                Debug.Log("Firebase correctly Initialized");
            }
            else
            {
                Debug.Log("Could not resolve all Firebase dependencies: " + task.Result);
            }
        });
    }
}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda