ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: White flash appearing when switching between tabs on Android

Open wonderdogone opened this issue 11 years ago • 121 comments

Type: bug

Platform: android 4.4 webview

when switching between tabs ONLY on Android platform, the app show a white flash. This is in 1.0.0 stable. Not using crosswalk. Forum post http://forum.ionicframework.com/t/white-flash-appearing-when-switching-between-tabs-on-android-in-1-0-0-stable/24774

wonderdogone avatar Jun 09 '15 08:06 wonderdogone

Would you instead be able to create a minimal codepen or git repo that I could clone and test out? Just a similar set up of your app

mhartington avatar Mar 24 '16 20:03 mhartington

Good idea. I will try to do that tonight or tomorrow morning. Thanks for your help.

jordantomax avatar Mar 24 '16 20:03 jordantomax

@mhartington I just tested it in my app and the flicker seems to be gone. :+1:

andreialecu avatar Mar 24 '16 20:03 andreialecu

I have tested the fix using the tabs starter on a Nexus 6 running the Android N preview, a Nexus 7 2013 running 6.0.1, a Moto X 2014 running 5.1 and a Nexus 7 2013 running 4.4.4 and did not see any flashing on any of those devices. Awesome !

jgw96 avatar Mar 24 '16 20:03 jgw96

@jordantomax any luck on getting that example together?

mhartington avatar Mar 25 '16 17:03 mhartington

@mhartington sorry, have been totally swamped! I hope to work on it on Sunday.

jordantomax avatar Mar 25 '16 18:03 jordantomax

@mhartington I just tested this on my app i'm building and android and iPhone seem to be fixed with #5937.

cenderin avatar Mar 28 '16 23:03 cenderin

@jordantomax, have you had a chance to put together an example?

Thanks, Dan

danbucholtz avatar Apr 06 '16 01:04 danbucholtz

Hi there,

This fix works well, but it looks the native-page-transitions plugin is then not working properly... transitions are doing crazy things after I put this fix. Do you think it is linked ?

tgensol avatar Apr 06 '16 02:04 tgensol

@tgensol Use default parameters for this plugins, it works well with this fix !

AdrienDC avatar Apr 06 '16 07:04 AdrienDC

Hello all! As it seems through my testing and you guys testing the fix seems to be working I'm gonna go ahead and close this issue for now. @jordantomax if you get a chance to throw that test together feel free to post and I'll gladly reopen (:. Also @tgensol if the above solution does not fix your issue would you mind opening a separate issue on the bug hour having? Thanks everyone!

jgw96 avatar Apr 06 '16 14:04 jgw96

With the breaking changes in ionic repo, how do we compile and build this

ladmerc avatar Jun 25 '16 21:06 ladmerc

1.x branch is now Ionic 1.3.1. If you clone the repo and checkout the branch, you should be able to run gulp build to generate the distributable files. Please let me know if you have any issues with this.

Thanks, Dan

danbucholtz avatar Jun 27 '16 04:06 danbucholtz

Thanks. already downloaded the dist manually :D

ladmerc avatar Jun 27 '16 09:06 ladmerc

+1

MarkPare avatar Jul 03 '16 02:07 MarkPare

I have fixed this. This happens related to ionic view update ionic bar bevavior: new bar created on before enter and hides old bar (current) an it blinks. Solution is defer hiding current bar to after enter event. Please write to me if you have some questions.

smcreator avatar Aug 13 '16 14:08 smcreator

@smcreator could you share the code snippets?

ericmachine88 avatar Aug 19 '16 04:08 ericmachine88

I still got same problem .... any code snippets Thanks

shrijan avatar Dec 13 '16 10:12 shrijan

I think this issue is fixed in recent ionic versions.

ladmerc avatar Dec 13 '16 12:12 ladmerc

I had the same problem and the response from @princefr was the key. I had multiple navigation bars over the views. While adding the ion-nav-bar only on the top of my tabs.html file I fixed the problem:

<ion-nav-bar class="my-custom-bar">
  <ion-nav-back-button class="button-clear">
    <i  class="button button-icon ion-android-arrow-back" ng-click="vm.goBack()"></i>
  </ion-nav-back-button>
</ion-nav-bar>

<ion-tabs>
....
</ion-tabs>

davebcn87 avatar Apr 06 '17 13:04 davebcn87