-
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
bug: bug: $ionicLoading Not Being Removed #3717
Comments
Could you provide a codepen demo? Faking the DB call of course |
Hi @mhartington I wont be sure if a codepen will be of help here as there is soo much going on. But I can tell you that in the bare bones its the fact that post RC3 based on the code above the $ionicLoading refuses to hide on android only. On IOS it works fine post RC3 |
Hey @saniyusuf, it's difficult to fix what we can't reproduce. Even using Btw, thanks for all you're doing in the UK. We'll be London for AngularConnect in Oct. Let me know if there's any meetups we should swing by. |
Hi @perrygovier I have created a code pen similar to my use case here http://codepen.io/saniyusuf/pen/OVboOz . This problem is a very bizarre one on IOS both Chrome, emulator and device no problem but on Android both Chrome And Device, the loading does not go away and worst part is there is no error in console. And yes I should be in London, i was disappointed you did not come to Amsterdam with the lads it was great meeting you guys. |
I've had similar problem ( EDIT |
Ahh finally someone with my problem and I thought I was going crazy. @ffabreti For me it works well on IOS but once you switch to Android the problem persists. |
Same problem ! Explanations proposed by @ffabreti seem consistent.
|
@mhartington @perrygovier any update on this little bug. For me it is android specific. The little hack seems to work |
Hmm, is that codepen from earlier still a good base to work from @saniyusuf ? |
Yup @mhartington I think whats happening is the action being returned as a promise is happening way too fast for the $ionicLoading. Because asap I use a normal promise via a real http request which takes time it works cleanly. |
Hi I have the same problem using cordova calls, if the call fails the $ionicLoading stay opens forever here is my code
Only when the call fails and go to error the dialog doesn't close otherwise it get close |
Same problem ! |
{delay: 100} indeed solved my problem too. Thanks. |
…deprecated object, update docum make the loader service return a promise instead of the deprecated object, update documents to show proper usage #3717
All, This issue should be fixed in the commit above. That commit will be merged into the nightly in the next day or so. Please re-open if the issue remains. Thanks, |
@ffabreti Thanks a lot. I was really struggling with this issue, but your solution saved my day. |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
Type: bug
Platform: android 4.4 webview
Type: bug
Platform: android 4.4 webview
Hi,
I have a case where in my Resolve for a route, I get some data from the local DB.
The code above shows how I handle my flow by showing the $ionicLoading and then hiding it asap I get something. This code has always worked since up until RC3. Updating to RC4 RC5 including Stable 1.0.0 seems to make sure that the $ionicLoading stays open. The funny part is it happens only on Android. On IOS the code works as normal but on Android (Both IONIC Serve & Ionic Device), It breaks. I have a video showing proof.
The text was updated successfully, but these errors were encountered: