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;
[lua]kochavaFAA.logStandardEvent( “levelComplete”,
{
userId = “userIdGoesHere”,
level = “levelNameGoesHere”,
score = score…""
}
)[/lua]
and console output is;
ERROR: kochava.logStandardEvent(eventType, options), options.score (number) expected, got string
Second error type (when we try to send number);
[lua]kochavaFAA.logStandardEvent( “levelComplete”,
{
userId = “userIdGoesHere”,
level = “levelNameGoesHere”,
score = math.round(score)
}
)[/lua]
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]