Building Sencha Touch app for Windows 8 (not windows phone 8) Microsoft Surface

╄→гoц情女王★ 提交于 2020-01-15 04:53:13

问题


I want to build a a simple Sencha Touch-2.3.1 application generated by Sencha CMD to run it on Windows 8.1 Microsoft Surface Simulator.

1-I opened Visual Studio (2013) and created a new JavaScript Windows Store project. 2-Copied the generated Sencha Touch app files to my project. 3-Changed the start page from default.html to index.html.

I then ran it on the simulator, but the application hangs at the blue loading screen with white dots. I opened the js console and found nothing in the log.

Is the approach wrong from the beginning? Sencha Touch team Assume that they support windows 8, but I'm unable to find any documentation illustrating the building procedure.

If any further info are needed let me know, your contribution is highly appreciated.


回答1:


The issue is the Windows 8 content security policy (CSP).

I have answered similar posts before, in addition to a few blog posts I've written (specific to Ext JS, but the same principle):

  • Creating Windows 8 Apps with Ext JS
  • First Thoughts on Windows 8, Visual Studio, and ExtJS

In short, neither of the Sencha Frameworks explicitly support the Win8 CSP... but with a little bit of hacking you can get it to work just fine.



来源:https://stackoverflow.com/questions/22039578/building-sencha-touch-app-for-windows-8-not-windows-phone-8-microsoft-surface

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