Ionic.Platform.exitApp() not working android [solved]


#1

Code:

<a class="button button-icon icon ion-ios-minus-outline" ng-click="cerrarApp()"></a>

$scope.cerrarApp=function(){ ionic.Platform.exitApp(); };

Thank you!


#2

Maybe this thread would help!


#3

Thanks for your help.He is missing:

<script src="cordova.js"></script>