我使用了下面的firebase代码:
int month = (int)[components month]; //gives you month
int day = (int)[components day]; //gives you day
int year = (int)[components year];
NSString * obj = @"Date : ";
NSString * key = [NSString stringWithFormat:@"%d/%d/%d",
我的Android版本无法初始化Firebase消息,出现以下错误:
I/Unity (30673): InitializationException: Failed to read Firebase options from the app's resources. You'll need to either at least set App ID and API key or include google-services.json your app's resources.
I/Unity (30673): at Firebase.FirebaseA
运行我的游戏在团结,从同一个查询,有时需要大约90秒-120秒从RTDB获得数据。当它发生的时候,我有时会得到这个
Cannot send message. websocket is not available
UnityEngine.Debug:LogWarning(Object)
Firebase.Platform.FirebaseLogger:LogMessage(PlatformLogLevel, String) (at Z:/tmp/tmp.YjzkX82xZ8/firebase/app/client/unity/src/Unity/FirebaseLogger.cs:92)
Fi
我已经在Unity 2020.3.0.f1上创建了一个简单的应用程序,集成了Firebase sdk 7.1.0。我基本上是在对firebase进行简单的读写操作。它在Unity编辑器中运行良好,但在移动版本中运行不佳,尽管apk构建是100%成功的。
操作系统: Ubuntu 20.04(LTS)。
下面是我的简单代码
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using Firebase.Database;
using TMPro;