Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228598

Does ExitApp put app into backround or complete remove

$
0
0

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();
}
});
}


Viewing all articles
Browse latest Browse all 228598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>