Page 1 of 1
Load stack from server to mobile
Posted: Thu Sep 19, 2019 8:02 am
by danieg
Hi all,
Is it possible to load a stack from server to an already existing mobile app? (go stack)
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 10:49 am
by Klaus
Hi danieg,
welcome to the forum!
Yes, this is possible:
Code: Select all
...
go stack "https://url/to/your/stack.livecode"
...
This is however considered "loading external code" and strictly forbidden by Apple.
No idea about Android, sorry.
Best
Klaus
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 11:42 am
by danieg
Thanks Klaus.
So loading external code possibly as a substack can yield added cards complete with objects like buttons, etc
without compiling in Android Studio first?
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 12:06 pm
by Klaus
Yes, no compiling or whatever, just like you would open a stack in the IDE!
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 6:36 pm
by Pistris
Hi Klaus
How would apple go about knowing am loading a stack from a server?
thanks
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 6:45 pm
by Klaus
No idea, but they will find out and then you are DOOMED!
Of course your app will be tested somehow.
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 10:46 pm
by jiml
I've heard rumors that some livecoders have not incurred Apple's rath with iOS apps that load external stacks.
The theory being it's akin to loading javascript in a webpage.
But I don't know if this is fact or mere rumor.
Can anyone confirm or refute?
Re: Load stack from server to mobile
Posted: Thu Sep 19, 2019 10:54 pm
by bogs
Well, seems to me there is an easy way to test this for someone that has a developers account with apple ( I am not going to pay money to develop for someone's platform just to run a test!).
Just dev some app, or alternately, take one you already have published and are thinking about updating, and try it with that. You would find out pretty quickly at that point whether or not they'll let it fly, wouldn't you?
Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 3:47 am
by Pistris
I didn't know this was possible , this certainly opens a world of possibilities
does apple check your code when you submit to the App Store or just tests the app?
Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 7:33 am
by danieg
This from another site: (for iOS apps)
"Select the app you wish to download and after it finishes, go into Settings > General > Device Management and trust the developer certificate. And voila, the app should work and be ready to go."
Its called sideloading an app. If we can update an app by loading additional script, it will be almost like webapps, just better.
Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 9:00 am
by FourthWorld
danieg wrote: ↑Fri Sep 20, 2019 7:33 am
If we can update an app by loading additional script, it will be almost like webapps, just better.
Exactly.
Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 9:12 am
by Klaus
So this is allowed on iOS nowadays?
Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 1:18 pm
by LCMark
@Klaus: It has taken years for Apple to get to a reasonable, understandable and sensible
rule in this regard. The relevant clause of the Apple Developer Agreement is:
3.3.2 Except as set forth in the next paragraph, an Application may not download or install
executable code. Interpreted code may be downloaded to an Application but only so long as
such code: (a) does not change the primary purpose of the Application by providing features or
functionality that are inconsistent with the intended and advertised purpose of the Application as
submitted to the App Store, (b) does not create a store or storefront for other code or
applications, and (c) does not bypass signing, sandbox, or other security features of the OS.
... next paragraph about the special-case of programming environment apps...
The agreement as a whole applies to all apps (macOS, iOS, WatchTV etc) which flow through Apple's
ecosystem [ It probably also, technically, applies to apps which you install ad-hoc on i-Devices too -
although what you choose to put on your own device in the privacy of your own home is not something
Apple can do something about ].
So downloading stackfiles containing data and LiveCode Script at runtime in support of an app's primary
purpose would appear to be fine - and will not cause you to be refused / ejected from the AppStore.
[ A general (even semi-general) LC player app does violate the clause due to (b) - it would essentially
be a 'storefront', whether you charged or not ].
Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 1:28 pm
by Klaus
Aha, thank you very much for the explanation, Mark!
@danieg
So yes, it is allowed as long as you stick to Apples rules.

Re: Load stack from server to mobile
Posted: Fri Sep 20, 2019 7:29 pm
by jiml
@LCMark , Thank you for posting the Apple reference. The rumors are true. Yipee!
