Pnotify center position

Apply below class:

.ui-pnotify{
   left: 50%;
   margin-left: -150px;
}

Note: Margin left should be half of your div width.

Eg: If div width is 300px then margin left will be -150px.

CSS horizontal centering of a fixed div

Apply below class to your div which is position fixed:

.div-position-fixed-centered-align{
   left: 50%;
   margin-left: -150px;
}

Note: Margin left should be half of your div width.

Eg: If div width is 300px then margin left will be -150px.

Restart Ionic application programmatically

Please try below code, Its working for me:

         $state.go("your_main_state_name_here");
          $ionicHistory.clearHistory();
          setTimeout(function (){
                 $window.location.reload(true);
          }, 100);

Cordova plugin commands

Add a plugin in app:

Cordova plugin add <plugin>

Search a plugin:

Cordova plugin search <splashscreen>

See the list of plugins added in your app:

Cordova plugin list

Run ionic

​​
​​
export ANDROID_HOME="$HOME/install/adt-bundle-linux-x86_64-20140702/sdk"
 
export PATH="$HOME/install/adt-bundle-linux-x86_64-20140702/sdk/tools:$ANDROID_HOME/platform_tools:$PATH"
Don't run below commands with sudo
ionic start myIonicApp tabs
​​
cd myIonicApp ionic platform add android ionic build android ionic emulate android
Ionic examples:
http://codepen.io/ionic/public-list/

Run npm update -g ionic to update
Open ionic app in browser:
ionic serve
​​
Open ionic app in browser on specific port

​​
ionic serve 8080 8100