-
Notifications
You must be signed in to change notification settings - Fork 66
Description
When building a signed release version of my app it fails when attempting to load the main file:
jxcore('app.js').loadMainFile()
The error message reported is:
No such native module /data/data/my.app.name/files/www/jxcore/app.js
The debug version of the app works fine.
I found what I believe is the same issue reported in the Thali Project:
thaliproject/Thali_CordovaPlugin#594
I am using version 0.1.1 of the plugin.
UPDATE
After more investigation here are a few more clues:
1/ The signed release app does sometimes start without errors. So maybe looking at a timing/threading issue.
2/ When the app fails the fs extension functions defined in jxcore_cordova.js (existssync, readfilesync) are not even invoked to try to read the app.js. So maybe the problem is somewhere in the main jxcore code rather than the cordova part?
3/ The message "no such native module" seems to be for core node.js modules. There seems to be no attempt made to load app.js