- Windows Phone 7 or 8
- Phonegap 3
- AngularJS 1.2
I have a PhoneGap application using AngularJS that works fine on iOS and Android, but I had a problem with it working on Windows Phone 7 and 8.
The application starts up normally, and I see my index.html page (which in my case is just a loading screen). The source files load and my pre-boot code works fine.
Then he stops and nothing happens.
I damaged console.log messages throughout the code, and I see that it reaches the point of angular.bootstrap() and then dies. I am not familiar with angular enough to know what to do next, or how to debug it further to determine what could be the absolute code of the problem. Inside the bootstrap (), the maze of DI calls begins, so the code becomes much less linear.
I see this error in the console, but I have no idea what it means or how to fix it:
An exception of type 'System.NotSupportedException' occurred in Microsoft.Phone.ni.dll and wasn't handled before a managed/native boundary
No other errors or any output are written to the console. I tried to delay all of my boot code for 10 seconds using setTimeout, and this error is always reported before angular.bootstrap() is angular.bootstrap() , so I don't know if this is even related.
It's also worth noting that I tried the app in IE on the desktop, and it works great there.
So my question is: how do I debug this?
javascript angularjs cordova windows-phone-8
Christopher nadeau
source share