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

On Windows 8 , camera.getPicture doesn't work in installed application

    XMLWordPrintableJSON

Details

    Description

      After installing my application, the camera function stopped working.

      It turns out the issue was "Illegal Access" when trying to save the picture to the application's root folder.

      I was able to fix the problem by writing to the local storage folder instead:

      Original Code:

      Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function (storageFolder) {
      /* Some code here */
      });

      Correction:

      var storageFolder = Windows.Storage.ApplicationData.current.localFolder;
      /* Same code here */

      Attachments

        Issue Links

          Activity

            People

              purplecabbage Jesse MacFadyen
              youval.bronicki@gmail.com Youval Bronicki
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: