I am writing a real time library for Codename one by wrapping the native libraries of Ably. I am invoking native interfaces to include the libraries for each platform, but how can I call Codename one code from the native interface or emit an event? For example, if I subscribe from an iOS client, how can tell the normal Codename One code that a message has been received?
2
votes
1 Answers
0
votes
In the advanced section of the developer guide look for the section titled "Native Code Callbacks".
This is pretty challenging as it differs between platforms so it's recommended to keep the callback to a minimum when possible.