Open adamziel opened 12 months ago
https://developer.android.com/jetpack/androidx/releases/javascriptengine could help run WASM in mobile apps without a WebView
https://developer.android.com/jetpack/androidx/releases/javascriptengine could help run WASM in mobile apps without a WebView
JavascriptEngine looks nice and could be a good fit for Android, but I'm tempted to use a solution that works with both iOS and Android instead of building two.
What's our goal? Do we want working apps that can run WordPress and display the HTML, or do we want libraries that allow developers to make requests to WordPress?
Both :-) also, agreed on interop — I'm just sharing what I've learned
Blocknotes proved WordPress can run on mobile devices. Currently it uses iCloud for synchronization. Let's explore a toolchain that enables bundling any WordPress site as a mobile app with a single command.
This issue is to start the discussion and explorations around that specific angle to grow the WordPress ecosystem.
The WAMR and Chicory runtimes could be useful for shipping WASM in mobile apps. Alternatively, the app could bundle a cross-platform runtime like Wasmer – this could enable exporting Playground sites as platform-specific executables in a similar way to what QuickJS-emscripten does.
Pre-compile the WASM for each platform (AOT) would speed up the startup. So could shipping the initial memory snapshot.
Related issues, potential pre-requisites
290