Firebase Analytics Bug

Hi Guys 

Fairly new to Corona SDK :slight_smile: I wanted to just launch a simple app and connect it with Firebase Analytics to 

get going. 

I managed to set-up Scott’s demo: https://github.com/scottrules44/firebaseAnalytics-demo

It seems like the event is logged in the console, but a WARNING message is shown before the event is actually logged (view below):

Oct 13 11:33:17.999 WARNING: The ‘plugin.firebaseAnalytics’ library is not available on this platform.

Oct 13 11:33:17.999 event logged

I assumed this warning would not stop me from creating a build on my device, but it did. I could not make a build.  The following error messages showed: 

BuildID: 59e08568d8d78ui8

Oct 13 11:55:27.006 ERROR: An error occurred during build (corona.build.7). The server returned the following message:

                    —

                    A device build error occurred on the server. 

                    

                    Error: Get plugin manifest 

                    Could not read manifest for plugin.

                    

                    Plugin: plugin.firebaseAnalytics 

                    Publisher: com.balloontap.android 

                    User Account: ...........

                    

                    BuildID: 59e08568d8d78ui8

                    —

Oct 13 11:55:27.006 

Oct 13 11:55:27.027 Android build failed (5) after 3 seconds

Oct 13 11:55:27.324 ERROR: Build Failed: A device build error occurred on the server. 

                    

                    Error: Get plugin manifest 

                    Could not read manifest for plugin.

                    Plugin: plugin.firebaseAnalytics 

                    Publisher: com.balloontap.android 

                    User Account: ...........

                    BuildID: BuildID: 59e08568d8d78ui8

                    Error code: 5

Would love some help with this to get this tested on my Android device. 

Thanks 

Dirk

Have you replaced  google-services.json  by your own?

You have to generate the one in Firebase console under your google account.

Yes, indeed I did this and have included my own  google-services.json- file. 

Have you changed build.settings? publisherId should be tech.scotth, not com.baloontap.android. That’s a plugin publisher.

And in the build window you should set package com.baloontap.android.

Ok great! That worked ! Thanks a lot :) 

Just some follow-up questions from my side: 

  1. Setting the following [“plugin.firebaseAnalytics”] = {publisherId = “tech.scotth”,}, does not send any data to this publishedID right ? I want to keep my data private please. 

  2. I successfully uploaded the the app to my device and launched it & pressed the button in the demo app (by Scott), but I could not manage to get the Firebase Debugview to get to work and view whether the event was indeed correctly triggered. I followed the documentation: https://firebase.google.com/docs/analytics/debugview, and did the following commands, but nothing worked. 

  • adb shell setprop debug.firebase.analytics.app com.balloontap.android
  • adb shell setprop debug.firebase.analytics.app tech.scotth
  • ./adb shell setprop debug.firebase.analytics.app com.balloontap.android
  • ./adb shell setprop debug.firebase.analytics.app tech.scotth

Did you guys get this to work and why ? 

Thanks again for the support!

  1. It is just plugin declaration syntax. No data transferred. 

  2. i think Scott will give a better answer as it’s his plugin.

I have never used the debug view, I don’t think it is supported because it require ms android studio or Xcode. You should just wait around 24 hours to the data in your dashboard.