Open ashigirl96 opened 5 years ago
I guess the problem is, that you´re running it on desktop, and for desktop there is with this plugin no api available.
Give me a couple of days, i´ve made a change locally to my version in order to make it working basically for desktop too for improved development.
As the author is not taking the responsibility for his tools anymore, i need to get the plugin working for 4.24 too
For a quick solution check: FirebaseApp.cpp, i´ve added something like:
const bool FFirebaseApp::Init() { if (IsInitialized()) { return true; }
// Settings
const UUltimateMobileKitSettings* DefaultSettings = GetDefault<UUltimateMobileKitSettings>();
if (firebase::App::GetInstance() == nullptr)
{
firebase::AppOptions Options = firebase::AppOptions();
Options.set_app_id(TCHAR_TO_ANSI(*DefaultSettings->FirebaseAppIdAndroid));
Options.set_api_key(TCHAR_TO_ANSI(*DefaultSettings->FirebaseApiKeyAndroid));
Options.set_project_id(TCHAR_TO_ANSI(TEXT("yourProjectIDFromFirebase")));
Options.set_database_url(TCHAR_TO_ANSI(*DefaultSettings->FirebaseDatabaseURLAndroid));
Options.set_messaging_sender_id(TCHAR_TO_ANSI(*DefaultSettings->FirebaseCloudMessagingSenderIdAndroid));
Options.set_storage_bucket(TCHAR_TO_ANSI(*DefaultSettings->FirebaseGoogleCloudStorageBucketNameAndroid));
FirebaseNativeAppPtr = MakeShareable(firebase::App::Create(Options));
FirebaseNativeAppPtr = MakeShareable(firebase::App::Create(firebase::AppOptions()));
JNIEnv* Env = FAndroidApplication::GetJavaEnv();
jobject Activity = FAndroidApplication::GetGameActivityThis();
if (Env && Activity)
{
FirebaseNativeAppPtr = MakeShareable(firebase::App::Create(firebase::AppOptions(), Env, Activity));
}
else
{
return false;
}
}
else
{
FirebaseNativeAppPtr = MakeShareable(firebase::App::GetInstance());
}
bool bWasSuccessfullyInitialized = FirebaseNativeAppPtr.IsValid();
SetInitialized(bWasSuccessfullyInitialized);
return bWasSuccessfullyInitialized;
return false;
}
Success to install
Configuration
Program
Output Log