had some strange problem occurring in Android 4.4
ionViewDidLoad() {
let loader = this.loadingCtrl.create({
content: "Please wait...",
});
loader.present();
this.authService.getAccessToken().then((accessToken) => { //1st promise returned the access token and working fine
this.accessToken = accessToken;
this.authService.getUserDetails().then((userDetails)=>{ //2nd promise not working on first load
this.user_info=userDetails;
this.courseService.getAllCourses(this.accessToken).then((foundCourse)=>{ // 3rd promise
this.foundCourse=foundCourse;
loader.dismiss();
});
});
});
}
loader didn’t dismiss on 4.4.
however everything seems to be working fine in 5.1 Lolipop.
Any ideas how to fix this?