Hi!
We have just started to transition our development over to Corona Enterprise, so Xcode and C code are new areas to me.
I’ve managed to integrate a few sdks like Google Analytics, Fabric, and Facebook. These track the basic things needed when starting and resuming the app using didFinishLaunchingWithOptions - no problem.
However, these also offer ways to track specific events in the actual app. To be able to do this, the app must trigger calls from the lua like pressing the button for example.
Specifially, I’m looking to run the simple code of: [FBAppEvents logEvent:@“INPUTEVENTNAMEHERE”]; for the Facebook plugin I’ve already implemented.
I’ve looked through the plugin documentation, but I’m not sure if it applies to my situation. All the examples are self contained project in another xcode file it seems like, so I can’t reach the included Facebook library for example. It seems like this shouldn’t even be needed, if there only was some way to run specific C code from corona, some function like runCode(’[FBAppEvents logEvent:@“INPUTEVENTNAMEHERE”];’) that could communicated “outside the box”. I only need communication from Lua to C, and not the other way around, for the record.
So I’m curious about how to solve this! What would be the most simple way of running a small line of code in C - preferrably with input variables - from the lua code in Corona.
Any input or being pointed in the right direction is appreciated, thanks