Can I download mods at runtime for ios and android?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Dheeraj Akula

Hi I need to make a game which is a collection of minigames fetched at runtime from an external server. So can myapp.apk load mod.pck at runtime? Is it possible on IOS as it enforces AOT compilation?

:bust_in_silhouette: Reply From: Calinou

Mobile app stores’ policies don’t allow downloading code at run-time. Since minigames fetched from a server will most likely include code, this isn’t allowed.

As gdscript is interpreted language can I just download script as a text file and run it?.
I found this in google play policy:
“Likewise, an app may not download executable code (e.g. dex, JAR, .so files) from a source other than Google Play.”
“This restriction does not apply to code that runs in a virtual machine and has limited access to Android APIs (such as JavaScript in a webview or browser).”
Does gdscript fall into the category of code that run in a virtual machine ?

Dheeraj Akula | 2020-07-15 12:15