Invoke codename code from ios.afterFinishLaunching hint

24 views
Skip to first unread message

Fuad Nassar

unread,
Feb 25, 2020, 2:53:21 PM2/25/20
to CodenameOne Discussions
hi,
i read this question about Invoke codename code from native interface, and tried that with success callback from native interface, but in my case the Objective-c code is in 
ios.afterFinishLaunching hint, so i tried add these hints but app has failure in cn1 server.

ios.glAppDelegateHeader=#include "com_test_NativeCallback.h" #include "cn1_globals.h" #include "CodenameOne_GLViewController.h"
ios.afterFinishLaunching=
com_test_NativeCallback_callback___int(CN1_THREAD_GET_STATE_PASS_ARG 5);

if i delete the above tow hints, the app will build in success, on the onther hand, i tried to replace #include to #import but get same failure.

Shai Almog

unread,
Feb 25, 2020, 9:27:50 PM2/25/20
to CodenameOne Discussions
Hi,
you need to read the error log and see what failed. Apples error logs are a bit hard to read though not as bad as googles.
Reply all
Reply to author
Forward
0 new messages