Building Sencha Touch app for Windows 8 (not windo

2019-07-20 16:03发布

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条回答
Evening l夕情丶
2楼-- · 2019-07-20 16:51

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):

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.

查看更多
登录 后发表回答