Webassembly wasm in Cordova or phonegap

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:
https://github.com/LucianoBestia/mem1_phonegap

Does anybody has experience with this?

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.