Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Firebase Analytics Bug
Started by dizzle_7 Oct 13 2017 02:03 AM

6 replies to this topic
firebase-analytics android
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

dizzle_7

[GLOBAL: userInfoPane.html]
dizzle_7
  • Observer

  • 3 posts
  • Corona SDK

Hi Guys 
 
Fairly new to Corona SDK :) I wanted to just launch a simple app and connect it with Firebase Analytics to 
get going. 
 
 
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


[TOPIC: post.html]
#2

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 150 posts
  • Corona Staff

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

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



[TOPIC: post.html]
#3

dizzle_7

[GLOBAL: userInfoPane.html]
dizzle_7
  • Observer

  • 3 posts
  • Corona SDK

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



[TOPIC: post.html]
#4

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 150 posts
  • Corona Staff

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.



[TOPIC: post.html]
#5

dizzle_7

[GLOBAL: userInfoPane.html]
dizzle_7
  • Observer

  • 3 posts
  • Corona SDK

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!

 



[TOPIC: post.html]
#6

Bektur

[GLOBAL: userInfoPane.html]
Bektur
  • Contributor

  • 150 posts
  • Corona Staff

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

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



[TOPIC: post.html]
#7

Scott Harrison

[GLOBAL: userInfoPane.html]
Scott Harrison
  • Corona Geek

  • 1,820 posts
  • Enterprise

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.


[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: firebase-analytics, android