After researching how to recognize an app's first launch in Ionic, I came across a local storage example that I'm attempting to follow. You can find the information here.
In my app.js run function, I included this code:
.run(function ($ionicPlatform, $state, Application) {
var state = "mainPage"; // the main page of your app
if (Application.isInitialRun()) {
Application.setInitialRun(false);
state = "intro";
}
$state.go(state);
});
Despite implementing this code, my app continues to display a blank white screen upon launching. Any thoughts on how to effectively utilize local storage for detecting the initial run of the app? Am I overlooking something crucial?