Search code examples
cordovawindows-phone-8

Cordova windows platform app close just after launch


I have a Cordova app working in Android and I want the windows phone version. (windows cordova platform)

The package is created correctly and the app appears in the phone (a real device). But when I try to open it, just after show the splashscreen the app it closes.

I don't have experience with windows phone and Visual Studio. How can I research for the error? Is there any tool in Visual Studio that shows me some message error?

I've tried the windows Phone developer tools with the phone connected and shows me performance information but I was not able to see anything interesting about the app failure.

I've tried to deploy the default "hello world" cordova app and it works well, then it seems it's not any problem related with my configuration and sdk installed.

Any idea?

Thank you.


Solution

  • Finally I could see the errors following the instructions of Thom.

    It's possible to open a Visual Studio project with a sln file placed inside the platforms/windows folder.

    Then with Visual Studio is easy to open the app and see message errors.

    In my case the problem is not jquery. It seem the problems with jquery and windows phone apps was solved with the 2.0 version.

    My problem is with Angular. I found a js library to make Angular compatible with windows phone:

    https://github.com/Microsoft/winstore-jscompat

    With this script I solved my problems.

    Thanks for all your answers