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

jQuery Mobile + Phonegap = no localStorage on Windows Phone 8

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.4.0
    • None
    • None
    • None
    • Windows Phone 8, PhoneGap 2.4.0, jQuery Mobile 1.2.0

    Description

      https://groups.google.com/forum/m/?fromgroups#!topic/phonegap/oSFBWinaYEo

      I'm using PhoneGap 2.4.0 and jQuery Mobile 1.2.0 in a Windows Phone 8 app. As soon as I include jQuery Mobile I get an error when trying to use localStorage. If I remove jQeryMobile localstorage is woring just fine. Has anyone else see this behavior?

      //On Windows Phone 8 (Android and iOS are fine) we crash when trying to do window.localStorage.setItem
      console.log('PRE window.localStorage.setItem! Trying to set UserName = ' + $(data).find("UserName").text());
      try{
      window.localStorage.setItem("UserName", $(data).find("UserName").text());
      }
      catch (e){
      //ERROR MSG: Error: The system cannot find the file specified.\r\n
      console.log('ERROR MSG: ' + e);
      }

      Attachments

        1. without_jQueryMobile.PNG
          203 kB
          Mads Dahlke
        2. with_jQueryMobile.PNG
          204 kB
          Mads Dahlke
        3. DemoApp.zip
          624 kB
          Mads Dahlke

        Activity

          People

            Unassigned Unassigned
            mads.dahlke Mads Dahlke
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: