Webassembly wasm in Cordova or phonegap

#1

I am learning Rust and Wasm. I made a simple memory game. It is more a tutorial how things work.
I tried to build it as a phonegap or cordova app for android.
But it does not work.
The code is here:

Does anybody has experience with this?

0 Likes

#2

I found the problem and solved it.
The wasm file is opened in javascript in an ajax call.
Modern browsers don’t alow ajax on local files.
PhoneGap app works with local files.
I changed the location of the wasm file to an URL on github and now it works.

0 Likes