I’ve communicated all the details to OneSignal, but I thought I’d drop this here as well to see if this is impacting anyone else.
The TLDR is that once a GetTags() call is made the following two errors will show up in the logs:
D/OneSignal: OneSignalRestClient: Making request to: https://onesignal.com/api/v1/players/xxxxx-xxxxx-xxxxx-xxxxx/on\_session D/OneSignal: OneSignalRestClient: POST SEND JSON: {"tags":{"build\_number":"1001"},"app\_id":"xxxxx-xxxxx-xxxxx-xxxxx"} V/OneSignal: OneSignalRestClient: After con.getResponseCode to: https://onesignal.com/api/v1/players/xxxxx-xxxxx-xxxxx-xxxxx/on\_session D/OneSignal: OneSignalRestClient: Successfully finished request to: https://onesignal.com/api/v1/players/xxxxx-xxxxx-xxxxx-xxxxx/on\_session D/OneSignal: POST RECEIVED JSON: {"success":true,"id":"xxxxx-xxxxx-xxxxx-xxxxx"} I/OneSignal: Device registered, UserId = xxxxx-xxxxx-xxxxx-xxxxx W/System.err: com.naef.jnlua.LuaRuntimeException: attempt to call a nil value W/System.err: at com.naef.jnlua.LuaState.lua\_pcall(Native Method) W/System.err: at com.naef.jnlua.LuaState.call(Unknown Source:4) W/System.err: at OneSignal.LuaLoader$GetTagsFunction$CoronaGetTagsHandler$1$1.executeUsing(LuaLoader.java:263) W/System.err: at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:195) W/System.err: at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:116) W/System.err: at com.ansca.corona.Controller.updateRuntimeState(Controller.java:343) W/System.err: at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:450) W/System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625) W/System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380) D/OneSignal: curActivity is NOW: null
and
D/OneSignal: registerUser: registerForPushFired:true, locationFired: true, awlFired: true D/OneSignal: OneSignalRestClient: Making request to: https://onesignal.com/api/v1/players/xxxxx-xxxxx-xxxxx-xxxxx/on\_session D/OneSignal: OneSignalRestClient: POST SEND JSON: {"app\_id":"xxxxx-xxxxx-xxxxx-xxxxx"} V/OneSignal: OneSignalRestClient: After con.getResponseCode to: https://onesignal.com/api/v1/players/xxxxx-xxxxx-xxxxx-xxxxx/on\_session D/OneSignal: OneSignalRestClient: Successfully finished request to: https://onesignal.com/api/v1/players/xxxxx-xxxxx-xxxxx-xxxxx/on\_session D/OneSignal: POST RECEIVED JSON: {"success":true,"id":"xxxxx-xxxxx-xxxxx-xxxxx"} I/OneSignal: Device registered, UserId = xxxxx-xxxxx-xxxxx-xxxxx W/System.err: com.naef.jnlua.LuaRuntimeException: attempt to call a number value W/System.err: at com.naef.jnlua.LuaState.lua\_pcall(Native Method) W/System.err: at com.naef.jnlua.LuaState.call(Unknown Source:4) W/System.err: at OneSignal.LuaLoader$GetTagsFunction$CoronaGetTagsHandler$1$1.executeUsing(LuaLoader.java:263) W/System.err: at com.ansca.corona.CoronaRuntimeTaskDispatcher$TaskEvent.Send(CoronaRuntimeTaskDispatcher.java:195) W/System.err: at com.ansca.corona.events.EventManager.sendEvents(EventManager.java:116) W/System.err: at com.ansca.corona.Controller.updateRuntimeState(Controller.java:343) W/System.err: at com.ansca.corona.graphics.opengl.CoronaGLSurfaceView$CoronaRenderer.onDrawFrame(CoronaGLSurfaceView.java:450) W/System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1625) W/System.err: at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1380)
once either of these occur, the app will crash within one or two actions.
I’ve been able to easily reproduce this issue with a simple native application as well as a simple lua-only application built by Corona’s servers.
Has anyone else encountered this issue on Android?