I did not solved exitApp but implemented a work around in the initialization of my 'intro' controller with calling the function:
function startupCheck() {
var alertPopup;
var alertExit = false;
var dayNumber = new Date().getDay();
//
// startup logic
if (dayNumber === 1) {
alertExit = true;
}
//
if (!alertExit) {
return;
}
//
alertPopup = $ionicPopup.alert(
{title: 'start up failure', template: "I don't like mondays"}
);
alertPopup.then(function (res) {
if (ionic.Platform.isWebView()) {
console.log("webview: attempt to exit..");
ionic.Platform.exitApp();
console.log("Oops, exit app NOT working(ios?), try again!");
startupCheck();
} else {
console.log("NOT webview(in browser?); to test loop, uncomment code line below");
//startupCheck();
}
});
}