-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Android can't handle back button on $ionicLoading #3272
Comments
After further reading the Ionic docs, I found that |
You can hide the loader with the hardware back button, it just need to execute at a higher priority level. http://codepen.io/mhartington/pen/KwrvwZ angular.module('ionicApp', ['ionic'])
.controller('MyCtrl', function($scope,$ionicPlatform,$ionicLoading) {
var callback = function(){
$ionicLoading.hide();
};
var priority = 600;
var deregister = $ionicPlatform.registerBackButtonAction(callback, priority);
$scope.$on('$destroy', deregister)
$ionicLoading.show();
}); |
That works well, cheers. On Mon, Mar 16, 2015 at 2:08 PM, Mike Hartington [email protected]
|
morinted http://wenxuebu.com/videokurs_schet 16.03.2015, 21:09, "morinted" [email protected]:That works well, cheers. On Mon, Mar 16, 2015 at 2:08 PM, Mike Hartington <>
—Reply to this email directly or . |
when 600 priority and 101 priority appear at the same time
|
Type: feat
Platform: android 4.4 webview
Issue #1273 addresed the fact that
$ionicPlatform.registerBackButtonAction
would fire while$ionicLoading
was present.However, I have a use-case where I would like to allow the user to cancel an $http request if they hit the back button. Would it be possible to add an option to
$ionicLoading
to allow the back button to be registered while it is open?The text was updated successfully, but these errors were encountered: