How to make ionic deploy channel change persistent

Hi,

Every time I change my app to dev the apps restarts after the update.
This results in a new update back to the production version.

How can I make the change persistent?
I like a kind of switch to switch between versions.

The code I use now:

function() {
var alertPopup = $ionicPopup.alert({
title: ‘U heeft nu de nieuwste versie!’,
template: ‘:)’
});

$ionicDeploy.channel = 'dev';

alertPopup.then(function(res) {

  loader.show(500);
  $ionicDeploy.check().then(function(snapshotAvailable) {
    if (snapshotAvailable) {
      loader.hide(500);
      $state.go('update');
    } else  {
      loader.hide(500);
    }
  });

});

};

Thanks in advance!