bug: Screen goes black after pressing back button
Type: bug
Ionic Version: 2.x
Platform: ios 7 webview
I have a side menu type of application .. When I run it on iOS I get a black screen sometimes when I press the back button. This only happen if I display an alert with an input prior to that.
Displaying an alert with an input always makes the whole screen go black with only the input showing. And sometimes when I tap the back button I get the same black screen again. The only way to get out of it is by swiping from the side to open the side menu and navigate somewhere else.
Update: the black screen seem to appear on iPad only.. While testing on iPhone 6s it shows the black background for a moment only.
Update 2: Just had the same issue on Android as well. I had an Alert with an input open, after closing it and hitting the back button, the screen turned all white. I was was able to get out of the white screen by swiping to open the side menu and navigate out of that page.
@ihadeed Why did you close this issue? I am running beta 3 on an iPhone5 and am occasionally running into the black screen after hitting the back button on a simple sidemenu app. @adamdbradley
@djangojack I did not test this again, I thought it was fixed...
I will try to reproduce the issue the same way I did before..
I get the black background whenever i have abstract tabs with child views nested 2 deep. And I notice it happens when I navigate back to views with ng-repeats and long lists.
for whatever reason, the 'active' view never receives nav-view="leaving", it goes straight from active to cached.
Any fixes?
I'm still seeing this on RC1. To reproduce, go into any depth of nesting, then click the back button but keep clicking in the same spot. Screen goes black. Looking at the HTML the 'base' screen actually get's removed.
I can repeat it every time now on iOS and using ionic serve. I'm looking for a work around (I'm thinking to disable the button once it's been clicked).
Linked to this bug - looks like it will be fixed with RC2 https://github.com/driftyco/ionic/issues/8770