pwa-builder / PWABuilder-CLI

Node.js tool for App Generation
Other
1.63k stars 142 forks source link

Generated app crashes on launch - Windows 10 #288

Closed JudahGabriel closed 6 years ago

JudahGabriel commented 6 years ago

I have an existing PWA that I want to submit to the Windows 10 app store.

When I run my app through PWABuilder web interface, it generates an zip file containing the .appx.

When I attempt to sideload that via test_install.ps1, it installs correctly and I see it in my start menu.

When I attempt to run my app, it shows for a brief second before disappearing. Looking in the Windows Event Log, I see:

Activation of app 42541MyCompany.MyApp_y3m7a4hh6j3hy!Chavah failed with error: The remote procedure call failed. See the Microsoft-Windows-TWinUI/Operational log for additional information.

Looking at Microsoft-Windows-TWinUI/Operational log, I see the following:

ActivateApplicationForContractByAppIdAsUserWithHost of the app 42541MyCompany.MyApp_y3m7a4hh6j3hy!Chavah for the Windows.Launch contract failed with The remote procedure call failed..

At this point, I'm unsure how to continue. How can I further debug this? I tried opening the generated App.jsproj in Visual Studio, but it says "The project type is not supported by this installation", even though I have VS 2017 Community with UWP and Cordova tooling installed.

JudahGabriel commented 6 years ago

Looks like this is an issue in my company domain only; running this on my desktop works fine. Closing, as it's not your problem. :-)