my ion-loading config:
.constant('$ionicLoadingConfig', {
template: '<ion-spinner icon="ripple" class="spinner-stable"></ion-spinner>',
delay: 0,
duration: 10000, //10 seconds
})
everything works correctly in iOS, but in Android, the spinner only shows when “$ionicLoading.show();” is not inside a function, i.e. spinner only shows when it’s the first line of code in the controller, in my case.