Errors when testing on iOS and Android

I playtesting in Phonegap and when I try to play on iOS (iPhone 5C) I get an error:

Error

Failed to load:

img/system/IconSet.png

--------------------------------------

On android:

Error

Your Browser does not allow to read local files  ||Tested on "Html reader" (icon for the app is HTML </>)

AND

Error

Your browser does not support Web Audio API ||Tested on "Offline Browser"

What Is causing this/these errors?

All files work on the pc version
Are you exporting the right thing?

This sounds like you're not following the instructions.

1) The error on the iPhone is because you didn't put the files in the right place for the build, so the relative path is wrong.

That's why you see a package.json and a www folder, go into the www folder you will see a stand alone index.html file, and all the directory paths. If you do not see that in your project then you've certainly done it wrong.

2) Don't use the Android native webview because Android versions prior to 4.4.x do not support WebGL and WebAudio. You want to use a Cordova webview.
Are you exporting the right thing?

This sounds like you're not following the instructions.

1) The error on the iPhone is because you didn't put the files in the right place for the build, so the relative path is wrong.

That's why you see a package.json and a www folder, go into the www folder you will see a stand alone index.html file, and all the directory paths. If you do not see that in your project then you've certainly done it wrong.

2) Don't use the Android native webview because Android versions prior to 4.4.x do not support WebGL and WebAudio. You want to use a Cordova webview.
my android runs 4.4.4 and i can't find any app by the name "cordova webview". 
my android runs 4.4.4 and i can't find any app by the name "cordova webview". 
https://en.wikipedia.org/wiki/PhoneGap is a distribution of Cordova.

So you're building/packaging it wrong somehow for the Android build.

eg https://crosswalk-project.org/documentation/cordova/cordova_4.html
https://en.wikipedia.org/wiki/PhoneGap is a distribution of Cordova.

So you're building/packaging it wrong somehow for the Android build.

eg https://crosswalk-project.org/documentation/cordova/cordova_4.html
I have not succeded to make an apk file of the game that works, that's why I use phonegap. I did try phonegap but I got an error for some audio runtime error.(forgot the actual error).After that I just copied the raw HTML5 copy of the game which should theoretically work but doesn't. I have tried all html based apps in the pkaystore. And yes I know that I need a working apk file and I can make one in Intel XDK but the 100 mb limit is killing most of the game. I tried faytless method (manual) but couln'd get it to work. From what I've seen I can't find a working method, and If I find it I will make a video about it if it hasn't already been made. Another error Is that I can't deploy the game (get's an error around 50% done) but I semi-fixed that but copying the remaining files to the deployed folder.
I have not succeded to make an apk file of the game that works, that's why I use phonegap. I did try phonegap but I got an error for some audio runtime error.(forgot the actual error).After that I just copied the raw HTML5 copy of the game which should theoretically work but doesn't. I have tried all html based apps in the pkaystore. And yes I know that I need a working apk file and I can make one in Intel XDK but the 100 mb limit is killing most of the game. I tried faytless method (manual) but couln'd get it to work. From what I've seen I can't find a working method, and If I find it I will make a video about it if it hasn't already been made. Another error Is that I can't deploy the game (get's an error around 50% done) but I semi-fixed that but copying the remaining files to the deployed folder.
I don't own any Android devices (No smartphones, no smartTV's), so I the only way I can test an APK is with the virtual machine emulators, and that's often a terrible experience in itself.

My general advice is, ignore Android until you are relatively certain which assets you will need and then use expansion files http://developer.android.com/google/play/expansion-files.html

Like... to be honest, I don't think it's possible to use the expansion files as-is. Like what should happen is all the javascript/json files plus all the cordova/phonegap bits should be in the APK, and then it should download the expansion file before "running" the game itself.

main.js

//=============================================================================// main.js//=============================================================================PluginManager.setup($plugins);window.onload = function() { SceneManager.run(Scene_Boot);};You would need to intentionally change main.js (not with a plugin since this runs after the plugins) to defer SceneManager.run unless the expansion files are present.

Original thread: https://forums.rpgmakerweb.com/threads/errors-when-testing-on-ios-and-android.49868/