title: Phonegap windows 8 App, with camera functionality, navigate.camera.getPicture() call back function is never called when deployed
body: <p>We have made a Win8 app using phonegap. 
  The application also has a reference to a Windows runtime component used to perform some asyc task. 
  The application has a camera feature, where in the camera is invoked, picture taken and then the picture is displayed on the screen in the success call back function. Everything works perfectly when running directly from visual studio express. The problem arises when we create a package of the application and deploy it using either metro sideloader or powershell. The camera success callback function is never called.
  The code for calling the camera is something like this:</p>
  
  <pre><code>    CameraService = function() {
          var that = {};
  
          that.invokecamera = function(callback) {
              try {
                  GLOBALS.callback = callback;
                  if (GLOBALS.Ready) {
                      navigator.camera.getPicture(that.onSuccess, GLOBALS.ThrowException, {
                          quality : 50,
                          saveToPhotoAlbum : true,
                          destinationType : Camera.DestinationType.FILE_URI
                      });
                  }
              } catch (err) {
                  alert(err);
              } finally {
              }
          }
          that.onSuccess=function(imageURI) {
          GLOBALS.ImagePath = imageURI;
          GLOBALS.callback(imageURI);
      }
          return that;
      }
  </code></pre>