Why JavaScript block is supported on PC, website but except mobile

You know GDevelop does support JS block (for long time ago), but i’m just curious that if it’s existed on desktop, PC, website


GDevelop editor on Safari

Why it does not support on mobile (like tablet, phone, …)?


GDevelop editor on iPad

Just a curious question.

Because Apple and Google’s terms of service do not allow running and executing code like this directly in an app.

So the javascript events are hidden, they persist in your project file, so they can be edited on the web or desktop app.

But if I use JS code blocks and create a build, it will work on Mobile right?

Yes it works.
The javascript code in compiled games works on mobile; what isn’t allowed by Google and Apple is editing and executing code inside the app. Letting users edit code in-app could allow them to inject code that might break the sandboxing that Google & Apple are trying to secure.