From 8c9ef0b484c5366661ac77f92b259b2c35be24a3 Mon Sep 17 00:00:00 2001 From: LaurenEllwood Date: Thu, 21 Oct 2021 10:22:13 +0200 Subject: [PATCH] Add notes on debugging the Windows app --- _docs/output/app-output.md | 1 + 1 file changed, 1 insertion(+) diff --git a/_docs/output/app-output.md b/_docs/output/app-output.md index 6e299595..ead08062 100644 --- a/_docs/output/app-output.md +++ b/_docs/output/app-output.md @@ -138,6 +138,7 @@ Here are the detailed steps: ### Troubleshooting +- UWP apps created by Cordova are still using the old/original Edge renderer i.e. not Chromium. The [Microsoft Edge DevTools Preview](https://www.microsoft.com/en-za/p/microsoft-edge-devtools-preview/9mzbfrmz0mnj) app can be used to display a full devtools environment when debugging issues in the Windows app. To do this, run the Windows app you want to debug (this can be a local build as outlined in step 7 above), then launch the Microsoft Edge DevTools Preview app and 'connect' to the relevant app. - Sometimes, when you build a release, you get a white screen when opening the app or any page inside it. [This post explains a likely reason](https://stackoverflow.com/questions/39200592/visual-studio-2015-cordova-windows-10-blank-white-screen-after-associated-with), which is that Visual Studio has changed the Package Name based on what's in your Windows account, and it doesn't match what you have in your app. To get it right, `WindowsStoreIdentityName` and `WindowsStorePublisherName` must be correct in the output `config.xml`, which is populated from what you have in `_data/secrets.yml`. - Another possible reason for the white screen of doom is that Cordova is not setting the default language in `package.windows10.appxmanifest`, which is is supposed to read from `config.xml`. This seems to be because when associating the app with the store, Visual Studio unsets the default language. To fix this manually, open `package.windows10.appxmanifest` in Visual Studio and add the language code to 'Default language'.