Sencha app doesn't start in Windows app packag

2019-07-23 13:04发布

问题:

We have a cross platform application based on Cordova (version 6.1.1) and Sencha ExtJS (cmd version 6.1.2 ext version 6.0.2). The application also uses the jQuery (version 2.1.4). Now we found a very frustrating problem on the Windows platform.

We created the Visual Studio project with cordova (the sencha app is built with testing option before)

When we open the Visual Studio (version 14.0.25123.00 Update 2) and build the project (in release mode) on a device, then everything works as expected.

If we create an app package from the Visual Studio and install it any device manually, then seems like the ExtJS application is not loaded, and the application will hang on splash screen after start. (As I debugged it the script elements are added to the html by the microloader script, but the attached onload listeners on these elements are never fired, therefore the app never started)

And here is coming the most funny part. If you use the Visual Studio function to debug an already installed application, and connect to this application, then everything will works as is should, the ExtJS codes will be loaded.

Anyone found this before, or any similar thing?

回答1:

What you can try is to use Vorlon.JS remote debugger. Vorlon.JS An open source, extensible, platform-agnostic tool for remotely debugging and testing your JavaScript.



回答2:

Could it be Cordova is failing something that works fine during debug, more forgiving environment. But truly fails the app when sideloading and running without debugger.. ?