First Run after app installation

This topic thread is almost identical to another thread: Best way to show first view dynamically when starting app

All the issues and solutions discussed there also apply here.

Anyway, initially I also couldn’t get it working, the trick was to NOT call “$urlRouterProvider.otherwise(…)” when configuring your “$stateProvider”. So, if in your app.js you have something like this:

$stateProvider

      .state('app', {
        url: "/app",
        abstract: true,
        templateUrl: "js/app/menu/menu.html"
      })

      .state('app.auth', {
        url: "/auth",
        abstract: true,
        template: '<ion-view/>'
      });

  // THE STANDARD IONIC STARTER APPS HAVE THIS LINE -
  // REMOVE THIS OR COMMENT IT OUT!
  // $urlRouterProvider.otherwise('/app/playlists');    // commented out

then make sure to REMOVE or COMMENT OUT the “$urlRouterProvider.otherwise(…)” call.

Actually this solution was already discussed in the thread I mentioned:

Best way to show first view dynamically when starting app