Hey all -
Sensitive topic, I know... but it seems most questions and answers on this topic are dated (some more than 5 years ago). I'd like to know if I can do the following on iOS according to today's developer agreements and Corona SDK's architecture:
- After an IAP, the app will download a lua file from a non-Apple hosted server.
- After the download completes, the app will use the new lua file via a require() call.
- The new lua module and app can then offer new behaviors/logic/features to the user.
To be clear, the IAP is for purposes of getting new behaviors provided by the downloaded lua and these behaviors do not change the premise of the app or make it do things it's not supposed to do as a part of its original submission to the AppStore.
I have mocked up the download/require/run parts of the above via the simulator and a local server. Would the iOS runtime environment not work the same way (e.g. prevents loading files from the SystemDocuments dir) ??
There are other app environments (notably react-native) which have a similar ability to dynamically run code that was not present at the time of app submission. And there are plenty of use cases for this strategy (adding new game levels after purchase, providing new filters for a photo app, etc).
So, is this all crazy talk or can it be done without issue from a submission perspective and can Corona allow one to load lua in the iOS runtime as it appears to allow in the simulator?
(And apologies if this has a recent answer. I haven't found one that is dated after the Apple Developer Agreement changes that occurred around June of 2017.)