Ionic Deploy: snapshot returns false always

I am trying to deploy app using Ionic Deploy .

I have setup every thing upto date and when i trying to deploy uploaded ionic app using website dashboard then it deploy successfuly

but the problem is deploy.check returns snapshot always false.

Please correct my code if i am doing anything wrong.
I am using below code under platform ready method.

this.deploy.check().then((snapshotAvailable: boolean) => {
if(snapshotAvailable)
{
this.deploy.download().then(() => {
return this.deploy.extract().then(() =>{
this.deploy.load();
//this.deploy.channel = ‘dev’;
});
});

Please help if anyone successfully able to deploy app using Ionic Deploy

Any progress with this? I’m facing the same issue.

I use this command to upload snapshots:
ionic upload --note "note" --deploy dev

My code (under platform ready method):

  this.deploy.channel = 'dev';      
  this.deploy.check().then((snapshotAvailable: boolean) => {
    console.log(snapshotAvailable); // always false
    if(snapshotAvailable){          
      this.deploy.download().then(() => {          
        return this.deploy.extract();
      });
    }
  });

  this.deploy.getSnapshots().then((snapshots) => {        
    console.log(snapshots); // always empty array []
  });

My system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: macOS Sierra
Node Version: v7.1.0
Xcode version: Xcode 8.1 Build version 8B62

same here, pls help :slight_smile:

@dmastag code posted here works for me.

Be sure that the channel is the correct one.