Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

angular adapter and WP8 Cordova: problems with x-wmapp0 format #93

johnnyelwailer opened this Issue Dec 19, 2012 · 3 comments


None yet
2 participants

when trying to use the angular jqm adapter in an wp8 cordova based app, I get an error in angularjs in the matchurl function, because it tries to match the url: x-wmapp0:www/index.html
the protocol won't get recognized by the regex(because it looks invalid, missing the // probably).
I'm not sure where it fails in the adapter part, but if I don't include the angular jqm adapter, the error won't appear.
The whole page will not load.

how can we solve this?


edit: this might be more of a Cordova/JQM Bug, I think I'll wait for the official release of Cordova 2.3 and the wp8 template (now using rc2)

Now when I put a <base/> element in the head,the error won't show up and the current page loads correctly, but all navigation fails(i have a routeprovider set up), but it fails at any navigation even without defined routes.
inside cordovas xmlhttprequest the error is: "Error in error callback: File1659018491 = TypeError: Unable to get property 'length' of undefined or null reference" and it's trying to load "/www/www/map.htm" with one www too much, but depends on which url I try: map.htm, map, /map, #/map, #map... the error only occurs once then probably breaks something :)


tbosch commented Dec 21, 2012

sorry, I can't fix this from the side of the adapter :-(
Could you create an issue on the Gihub page of AngularJs?
Please check in advance if there is no existing tracker there, and if the issue occurs when you are using only AngularJs without jqm and the adapter (but with routing enabled, e.g. with angular.module(["ng"]).run(function($route) { });



tbosch commented May 10, 2013

here is the corresponding issue in angularjs: angular/angular.js#2303

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment