Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Kochava Free App Analytics - Event integration - Error
Started by bulupe Jun 30 2017 02:16 PM

3 replies to this topic
kochava faa free app analytics event
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

bulupe

[GLOBAL: userInfoPane.html]
bulupe
  • Enthusiast

  • 51 posts
  • Corona SDK

Hello,

 

We are having an error with Kochava FAA when we wanted to send score data in "logStandartEvent" function, examples are below;

 

First error type, when we wanted to send score as string;

 

kochavaFAA.logStandardEvent( "levelComplete",
{
userId = "userIdGoesHere",
level = "levelNameGoesHere",
score = score..""
}
)

 

and console output is;

 

ERROR: kochava.logStandardEvent(eventType, options), options.score (number) expected, got string

 

Second error type (when we try to send number);

 

kochavaFAA.logStandardEvent( "levelComplete",
{
userId = "userIdGoesHere",
level = "levelNameGoesHere",
score = math.round(score)
}
)

 

 

and console output is worst here and we got a runtime error;

 

 

Corona : ERROR: Runtime error
Corona : java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
Corona : Java Stack Trace:
Corona : plugin.kochava.faa.LuaLoader$LogStandardEvent.invoke(LuaLoader.java:1097)
Corona : com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)
Corona : com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:182)
Corona : com.ansca.corona.Controller.updateRuntimeState(Controller.java:347)
Corona : com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:421)
Corona : com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1623)
Corona : com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378)
Corona : stack traceback:
Corona : [C]: in function 'logStandardEvent'
Corona : ?: in function 'method'
Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function 'dispatchEvent'
Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/composer/composer.lua:886: in function Corona : ERROR: Runtime error
Corona : java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.String
Corona : Java Stack Trace:
Corona : plugin.kochava.faa.LuaLoader$LogStandardEvent.invoke(LuaLoader.java:1097)
Corona : com.ansca.corona.JavaToNativeShim.nativeRender(Native Method)
Corona : com.ansca.corona.JavaToNativeShim.render(JavaToNativeShim.java:182)
Corona : com.ansca.corona.Controller.updateRuntimeState(Controller.java:347)
Corona : com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:421)
Corona : com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1623)
Corona : com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1378)
Corona : stack traceback:
Corona : [C]: ?
Corona : [C]: in function 'logStandardEvent'
Corona : ?: in function 'method'
Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function 'dispatchEvent'
Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/composer/composer.lua:886: in function
Corona : (tail call): ?
Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/subrepos/transition/transition.lua:595: in function 'method'

Corona : /Users/jenkins/slaveroot/workspace/Templates/label/android/platform/resources/init.lua:221: in function]

 

 

 

 

 

 



[TOPIC: post.html]
#2

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

@bulupe

After some investigation it seems as if score should be sent as a string. However there is a bug in the plugin preventing you to do so.

I'll be looking into it and will update this thread once it has been fixed.



[TOPIC: post.html]
#3

bulupe

[GLOBAL: userInfoPane.html]
bulupe
  • Enthusiast

  • 51 posts
  • Corona SDK

Thank you,

[TOPIC: post.html]
#4

ingemar_cl

[GLOBAL: userInfoPane.html]
ingemar_cl
  • Contributor

  • 673 posts
  • Alumni

The standard parameter 'score' should be sent as a string.

I've fixed the issue and it will be available in the next version of the plugin. 

 

I'll notify on this thread once it's live on the build servers.




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: kochava, faa, free app analytics, event