How to make ionic deploy channel change persistent



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: ‘:)’

$ = 'dev';

alertPopup.then(function(res) {;
  $ionicDeploy.check().then(function(snapshotAvailable) {
    if (snapshotAvailable) {
    } else  {



Thanks in advance!