Firebase Analytics

Solar2d Simulator(2020.3600) Crash on IOS build with Firebase Analytics plugins and Other plugins.
It Build successfully After removing Firebase Analytics Plugin.

– Admob plugin
[“plugin.admob”] =
{
publisherId = “com.coronalabs”
},

	-- In Mobi
	["plugin.inMobi"] =
    {
        publisherId = "com.coronalabs"
    },

	-- IAP Google
	["plugin.google.iap.v3"] =
    {
        publisherId = "com.coronalabs"
    },

	-- Notifications
	["plugin.notifications.v2"] =
	{
		publisherId = "com.coronalabs"
	},

	-- Amazon IAP
	["plugin.amazon.iap"] =
    {
        publisherId = "com.coronalabs"
    },

	-- Firebase Analytics
	["plugin.firebaseAnalytics"] =
	{
		publisherId = "scotth.tech",
		supportedPlatforms = {
			android = { url = "https://solar2dmarketplace.com/marketplacePlugins?ID=62baro&plugin=FirebaseAnalytics_scotth-tech&type=Android" },
			iphone = { url = "https://solar2dmarketplace.com/marketplacePlugins?ID=62baro&plugin=FirebaseAnalytics_scotth-tech&type=iOS" },
			macos = { url = "https://solar2dmarketplace.com/marketplacePlugins?ID=62baro&plugin=FirebaseAnalytics_scotth-tech&type=MacOS" }, --Only works with Corona Simulator 3592+
		}
	},

firebase analytics from scoth.tech ( https://plugins.solar2d.com/ ) is included with the solar2d installation file in offline builds. Just add

{
    plugins = {
        ["plugin.firebaseAnalytics"] = {
            publisherId = "tech.scotth",
        },
    },
}

I have used 2020.3600 and it worked for android build.

1 Like

ERROR: Runtime error
/Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:32: assertion failed!
stack traceback:
[C]: in function ‘assert’
/Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:32: in function ‘exec’
/Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:138: in function </Users/runner/runners/2.263.0/work/corona/corona/platform/resources/CoronaOfflineiOSPackager.lua:110>

Thanks.

it works fine in Solar2d Simulator(2020.3601)

1 Like

New issue found

IOS App crash on start

[Device] *** Terminating app due to uncaught exception ‘FIRAnalyticsVersionMismatch’, reason: ‘Google Analytics for Firebase version (60202000) does not match with Google App Measurement (60600000) version. Please update.’

@mysticeti

Do you get the same issue for android build? Which solar2d build are you using?

It is working fine in Android. Only the issue is with IOS.

Once I remove “plugin.firebaseAnalytics” from build settings. it working fine.

Build: 2020.3611

Sorry I don’t develop for iOS now so unfamiliar with issues with that. Let’s wait for others to pitch in.

Thanks.

Hope I will get the solution soon.

1 Like

I have exactly the same problem (Solar2D version 2020.3610) and did create a bug report at https://scotth.tech.

Same error on iOS with Firebase Analytics. App auto exit

I just released an update on solar2d marketplace

3 Likes
settings =

{
android =
{
strings =
{

	    ["google_app_id"]= "1:example number:android:example number"
	},
    useGoogleServicesJson = true,
},
plugins= {
	["plugin.firebaseAnalytics"] =
	{
	  publisherId="tech.scotth",
	  marketplaceId = "insert marketplace account ID",
	},
},

}.

How to get "marketplaceId "?

@Trung_Kien_Tran,
Following @Scott_Harrison’s Solar2D Marketplace website, you need to set up an account (if not done already) and activate them. The “Account ID” is on your account page on the marketplace. Please see here for his video guide,
https://solar2dmarketplace.com/guide

App crash on iOS. Please help me!

Can you provide more details “App crashing”? If you want to dm me your project I can take a look.

I got this issue again:

App is crashing on start, console output is:

*** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (60202000) does not match with Google App Measurement (60803000) version. Please update.'

(Using Firebase Analytics and AdMob Plugin).

This problem might arise anytime the Firebase or AdMob plugin gets updated. Isn’t there a way to make the versions match automatic?

Best regards!

Hi,

I have been struggling with the same problem a couple of times. I managed to update the downloaded plugin versions in such a way that at the moment my game (development version) has no version conflicts and has Firebase Analytics and AdMob plugins running. I did unpack the plugin tars, replaced the conflicting files with compatible ones and repacked the files again. And the game runs and works both on iOS and Android.

I wrote a rather long article about this. Hopefully it helps and if you notice missing / unclear steps I can try to clarify. The article:
https://cleanseagame.docommit.com/blog/blog_solar2d_admob_notifications_firebase_plugins_on_ios.html