API not working in a standalone

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

API not working in a standalone

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: API not working in a standalone

Post 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
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: API not working in a standalone

Post 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
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10509
Joined: Wed May 06, 2009 2:28 pm

Re: API not working in a standalone

Post by dunbarx »

Glenn.

Do you load these manually, or let the builder do it?

Craig
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: API not working in a standalone

Post by glenn9 »

I tried both Craig, initially letting the Builder do it, and when this didn't work I manually included internet etc. Glenn
AndyP
Posts: 634
Joined: Wed Aug 27, 2008 12:57 pm
Contact:

Re: API not working in a standalone

Post 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.
Andy .... LC CLASSIC ROCKS!
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: API not working in a standalone

Post by jacque »

What platform are you building for? Android needs a second internet setting.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: API not working in a standalone

Post by glenn9 »

I'm building for Android. Not sure how to access the 2nd internet setting?
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: API not working in a standalone

Post 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. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Post Reply