Phonegap windows phone, android and ios works but not windows?

I have a phonegap app that works in Android and ios, but when I transfer it to a Windows phone it doesn't work. It loads the emulator very well, it shows the page rendered and styled, but clicking the login button on the page does nothing. I tried to disable all javascript files except the cordova file and try "alert ()" and it didn't work. How do you debug javascript errors, the debugger that runs during emulation only shows this:

GapBrowser_Navigated :: /app/www/login.html
'UI Task' (Managed): Loaded 'System.ServiceModel.Web.dll'
'UI Task' (Managed): Loaded 'System.ServiceModel.dll'
The thread '<No Name>' (0xf6200ba) has exited with code 0 (0x0).
'UI Task' (Managed): Loaded 'System.SR.dll'
A first chance exception of type 'System.ArgumentException' occurred in mscorlib.dll
The thread '<No Name>' (0xf0d00ea) has exited with code 0 (0x0).

      

I have no idea how to debug this (and reading messages that sound like information about this shouldn't be a problem), can someone point me in the right direction?

Thank you for your time.

+3


source to share


1 answer


It looks like it was caused by javascript using cordova avia before devicered started, it never happened in android or ios but I think the runtime in windows caused race conditions. Also, I used a "throw" to kill the javascript after window.location was done, so nothing was done and it doesn't work on windows, but it does on the other two.



0


source







All Articles