Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

212
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda