Godot FireBase module based on C++ SDK
This is not complete so using this module is not recommended,
git clone https://github.com/FrogSquare/GDFireBase-CPP <GODOT-ROOT>/modules/gdfirebas
First you need to download FireBase
c++ sdk from Here and extract that under <GODOT-ROOT>/modules/gdfirebase/
as firebase_cpp_sdk
var firebase = null
func _ready():
firebase = GDFireBase.new()
GodotFireBase config file, By default every feature is disabled.
{
"AdMob" : true,
"Authentication" : true,
"Invites" : true,
"RemoteConfig" : true,
"Notification" : true,
"Storage" : true,
"Firestore" : true,
"AuthConf" :
{
"Google" : true,
"Twitter" : true,
"Facebook" : true,
"FacebookAppId" : "1234566789875"
},
"Ads" :
{
"AppId": "YOUR_APP_ID_HERE",
"BannerAd" : true,
"BannerGravity" : "BOTTOM",
"BannerAdId" : "",
"InterstitialAd" : true,
"InterstitialAdId" : "",
"RewardedVideoAd" : true,
"RewardedVideoAdId" : "",
"TestAds" : false
}
}
And initializing Firebase, to initialize with Dictionary
firebase.init(conf_dictionary, get_instance_ID())
or by using a .json
file
firebase.init_with_file("res://godot-firebase-config.json", get_instance_ID())
The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.4,15.0.4], [16.0.2,16.0.2]], but resolves to 16.0.2. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies
To fix the error add the following to platform/android/build.gradle.template
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true