Visual Studio 2015 Cordova Windows 10 > Blank/white screen after associated with the existing windows store app

前端 未结 4 814
星月不相逢
星月不相逢 2020-12-06 13:16

Without associating the app with the store, i can run and debug the cordova app on my devices (all works fine). But after associating the app with the store (or after built

4条回答
  •  佛祖请我去吃肉
    2020-12-06 14:13

    I had the same problem but I resolve it now. When you associate the application to store, Visual Studio changes these values:

    but it does not change the value of package name in the application tab:

    so the index.html is not found and the app shows a blank screen. To resolve it, you must add two preferences in config.xml file as described here:

    https://stackoverflow.com/a/40658027/2496666

    and rebuild the project from CLI with the usual command:

    cordova build windows
    

    after rebuild the project, the values shown in the following image must be the same:

提交回复
热议问题