history.back() with Android on Ionic

How do I not refresh the page when calling history.back() on Android with Ionic? It works fine on iOS, but on Android it's reloading the page. I'm on cordova 3.5.

You are looking for the $ionicNavBarDelgate.back() method. This uses the ui.router state to navigate back in the history without reloading the page.

See: http://ionicframework.com/docs/api/service/$ionicNavBarDelegate/

HTML

<button type="button" class="button button-clear" ng-click="goBack()">Back</button>

Javascript Controller

angular.module('App').controller('PageCtrl', function ($scope, $ionicNavBarDelegate) {
  $scope.goBack = function () {
    $ionicNavBarDelegate.back();
  };
});