Sencha app doesn't start in Windows app package

人盡茶涼 提交于 2019-12-11 13:54:18

问题


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.. ?



来源:https://stackoverflow.com/questions/37699025/sencha-app-doesnt-start-in-windows-app-package

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!