{"action":"closed","issue":{"url":"https://api.github.com/repos/driftyco/ionic-plugin-deploy/issues/36","labels_url":"https://api.github.com/repos/driftyco/ionic-plugin-deploy/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-plugin-deploy/issues/36/comments","events_url":"https://api.github.com/repos/driftyco/ionic-plugin-deploy/issues/36/events","html_url":"https://github.com/driftyco/ionic-plugin-deploy/issues/36","id":112285811,"number":36,"title":"check() function not work, only returning Ionic Deploy: no updates available","user":{"login":"grapemix","id":480406,"avatar_url":"https://avatars.githubusercontent.com/u/480406?v=3","gravatar_id":"","url":"https://api.github.com/users/grapemix","html_url":"https://github.com/grapemix","followers_url":"https://api.github.com/users/grapemix/followers","following_url":"https://api.github.com/users/grapemix/following{/other_user}","gists_url":"https://api.github.com/users/grapemix/gists{/gist_id}","starred_url":"https://api.github.com/users/grapemix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grapemix/subscriptions","organizations_url":"https://api.github.com/users/grapemix/orgs","repos_url":"https://api.github.com/users/grapemix/repos","events_url":"https://api.github.com/users/grapemix/events{/privacy}","received_events_url":"https://api.github.com/users/grapemix/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-20T04:42:32Z","updated_at":"2015-11-02T13:09:22Z","closed_at":"2015-11-02T13:09:22Z","body":"Hi,\r\n\r\nFirst of all, I think this feature is awesome and I would really like to use this feature. Thanks for your work.\r\n\r\nI am following the tutorial in http://docs.ionic.io/docs/deploy-install, but I cannot make the deployment work. Ideally, my app can check for update at every startup and update the app if new version is available. So besides of the button example in the tutorial, I also try the following snippet:\r\n\r\nvar deploy = new Ionic.Deploy();\r\n\r\n// Check for updates\r\ndeploy.check().then(function(response) {\r\n  // response will be true/false\r\n  if (response) {\r\n    // Download the updates\r\n    deploy.download().then(function() {\r\n      // Extract the updates\r\n      deploy.extract().then(function() {\r\n        // Load the updated version\r\n        deploy.load();\r\n      }, function(error) {\r\n        // Error extracting\r\n      }, function(progress) {\r\n        // Do something with the zip extraction progress\r\n        console.log(progress);\r\n      });\r\n    }, function(error) {\r\n      // Error downloading the updates\r\n    }, function(progress) {\r\n      // Do something with the download progress\r\n      console.log(progress);\r\n    });\r\n  }\r\n}, function(error) {\r\n  // Error checking for updates\r\n});\r\n\r\nBut both experiment return 'Ionic Deploy: no updates available'.\r\nI double check the ionic.io's webinterface,  the deploy is there. \r\nI also tried to switch to another channel by 'deploy.setChannel(\"dev\");', but still not working.\r\nI am also testing with updating the app without checking, it returns'Ionic Deploy: Update Success!', but the app is not updating.\r\nI tried to click the update button with and without restating the app, but still not working.\r\n\r\nI tried to call deploy.getVersions().then(function(r){console.log(r);}); , it returns'binary_version: \"1.0.6\"deploy_uuid: \"NO_DEPLOY_AVAILABLE\"'.\r\n\r\nI tried to put config.xml inside www/, still not working.\r\n\r\nAny ideas?\r\n\r\nThanks,"}}