Page 1 of 1
API not working in a standalone
Posted: Tue Feb 02, 2021 8:58 am
by glenn9
Dear All,
I've got an API that calls as expected when part of the IDE but as soon as I build it as a Standalone the API no longer calls.
Even having 'internet' selected in the Inclusions of the Standalone Builder as Richard suggested
viewtopic.php?f=7&t=35299&start=15#p201067 has not enabled the API in the standalone.
As a test I also built Richard's sample API stack
viewtopic.php?f=7&t=35299#p201058 as a standalone but I think the API is also not calling as a Standalone.
I was just wondering whether its a missing setting issue or something else that I'm overlooking.
Thanks for any help,
Kind regards,
Glenn
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 2:55 pm
by dunbarx
Hi.
If the IDE stack works and the standalone does not, it has to be an inclusion. Do you load these manually, or let the builder do it? I load mine manually, though to be fair, I rarely need very many.
Craig
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 3:29 pm
by glenn9
Hi Craig,
I initially included 'internet' but to no avail, so I think included everything JSON but again nil, so I then included everything(!) but still no luck...
Not sure what to do next!
Thanks,
Glenn
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 3:42 pm
by dunbarx
Glenn.
Do you load these manually, or let the builder do it?
Craig
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 4:04 pm
by glenn9
I tried both Craig, initially letting the Builder do it, and when this didn't work I manually included internet etc. Glenn
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 5:39 pm
by AndyP
Hi Glen,
I tried the sample stack from Richard in the linked forum post, and selectively tried what inclusions were required to get it running.
Try these as your base inclusions
JSON Library
Internet
mergJSON
If any of these were not included the generated exe would not function correctly.
Let us know how you get on.
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 6:47 pm
by jacque
What platform are you building for? Android needs a second internet setting.
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 7:27 pm
by glenn9
I'm building for Android. Not sure how to access the 2nd internet setting?
Re: API not working in a standalone
Posted: Tue Feb 02, 2021 7:40 pm
by jacque
In the Android pane in standalone settings there's an Internet permission you need to check. That's in addition to the Inclusions. I fell into the same trap on my first Android build, and the person who helped me said he did too.
