Hi there,
I try to integrate the firebaseAnalytics by using plugin.firebaseAnalytics.
The marketplaceId ID have been set and the plugin of firebaseAnalytics is set to active at the marketplace.
The error message : Warning You are using on unsupported plugin, please see updated plugin on solar2dmarketplace.com
And I also try the sample code : GitHub - scottrules44/firebaseAnalytics-demo
Still the same error.
version: 2025.3717 (2025.2.9)
Please help me with this issue and give me advise, thanks!
Vincent
@Scott_Harrison
Hi @Scott_Harrison ,Thank you for your quick reply, the problem has been solved.
About the Demo :GitHub - scottrules44/firebaseAnalytics-demo
Is the local firebaseConfig = { apiKey= "AIzaSyBouW3qRDbDGIGreQj1Gk0-kBWZtLqzCc0", authDomain= "corona-sdk-4-82825584.firebaseapp.com", databaseURL= "https://corona-sdk-4-82825584.firebaseio.com", projectId= "corona-sdk-4-82825584", storageBucket= "corona-sdk-4-82825584.appspot.com", messagingSenderId= "652763858765", appId= "1:652763858765:web:68320c1e0dec341d095904", measurementId= "G-CHT4LV5J43" } necessary? or I can just use : firebaseAnalytics.init() ?
And there is no log for the code : `-- init Firebase Analytics
initFirebase = function()
firebaseAnalytics.init( function( event )
if ( event.isError ) then
print( "Firebase Analytics init Failed: " … event.errorMessage )
else
print( “Firebase Analytics init Successfully” )
end
end)
end
– init
initFirebase()`
@Scott_Harrison Please help me with this issue, thanks a lot.
Vincent
Please read docs carefully
firebaseAnalytics.init(config, callback)
– initialize firebase analytics
config(table)-- Only required and used for Web Builds, pass config info from firebase console see example below and setup section
callback(function)-- Only required and used for Web Builds, callback for when firebase library loads on web. Sends event.isError(boolean)
This two prams are only used with html5 build
1 Like
Yes! Thank you very much.