I am trying to implement Keen.IO analytics for a Unity3d IOS Application. I went through the Keen.IO docs, integrated the library into the xcode project generated by Unity3D, and built successfully.
However when I try to make a simple straightforward "AddEvent" call from the AppController methods, I get this exception.
2014-05-22 18:04:20.591 Adding event to collection: testEvent1
2014-05-22 18:04:20.594 [__NSDictionaryM JSONDataWithOptions:serializeUnsupportedClassesUsingDelegate:selector:error:]: unrecognized selector sent to instance 0x34737e0
2014-05-22 18:04:20.596 Exception: -[__NSDictionaryM JSONDataWithOptions:serializeUnsupportedClassesUsingDelegate:selector:error:]: unrecognized selector sent to instance 0x34737e0
I am registering the KeenClient in the applicationDidBecomeActive() method (which works fine)and Calling AddEvent() in applicationDidEnterBackground() method with a simple NSDictionary:
NSDictionary *event = [NSDictionary dictionaryWithObjectsAndKeys:@"first view", @"view_name", @"going to", @"action", nil];
[[KeenClient sharedClient] addEvent:event toEventCollection:@"testEvent1" error:nil];
It looks like the Keen.IO Library code is raising this exception but I am suspecting if it is something to do with the Unity generated xcode project.
Any help from someone familiar is appreciated.