Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-3352

Phonegap + AngularJS + Windows Phone

VotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      We build application based on Phonegap (2.6.0) and AngularJS (1.1.3). On iOS and Android works great. On Windows Phone 7 and 8 we gets error: "Unable to get property '1' of undefined or null reference file:x-wmapp0:www/js/libs/angular.js Line:5034"

      Problem is in function matchUrl:

      var match = URL_MATCH.exec(url);

      match =

      { protocol: match[1], host: match[3], port: int(match[5]) || DEFAULT_PORTS[match[1]] || null, path: match[6] || '/', search: match[8], hash: match[10] }

      ;

      Problem is that variable url contains this: "x-wmapp0:/www/index.html" and URL_MATCH.exec can't parse that url correctly.

      Attachments

        1. example.zip
          169 kB
          Jan Mikula

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            purplecabbage Jesse MacFadyen
            jan.mikula Jan Mikula
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment