Thanks for the answer Jan, and sorry for the late reply!
This seems the way to go, but there are some details that I can't sort, possibly due to my inexperience
I'll try to summarize the best I can:
- The main Class is MOCA. From it we can get MOCAProximityService, which is the one that has the delegates. There is an eventDelegate and an actionDelegate.
- The same in Android is really simple (Just declaring that the app class implements de callback and declaring it with @override) but not in IOS
- My current code is
- (void)MocaInit {
// Initialize MOCA SDK.
BOOL mocaReady = [MOCA initializeSDK];
if (!mocaReady) {
NSLog(@"MOCA SDK initialization failed.");
}else{
NSLog(@"MOCA SDK initialization OK!!!");
MOCAProximityService * theService = [MOCA proximityService];
[theService actionsDelegate] = self; // Compiler throws: "error: expression is not assignable"
//[theService eventsDelegate] = self; //<-- we don't use this one, since the desired callback is defined in the MOCAProximityActionsDelegate and not the MOCAProximityEventsDelegate
}
}
What should I change to make in work? and also how to declare the callback function: Inside an @implementation block? Should I declare also @interface and/or that my app adheres to the defined protocol (from what I have read)... too many doubts
Just in case I attach the 3 header files (MOCAlib.h, MOCAProximityService.h and MOCAProximityDelegate.h) where . I'll give my eternal gratitude, a virtual beer or a donation (whatever you prefer) if I can get it solved.