bug: nav.push does not always open the new page
Type: bug
Ionic Version: 2.x
Platform: android 5.1
Ionic Version:2.0.0-beta.0
Quite often when trying to pop up a new page by using push function from NavController the page does not show up. However the code in the target page component constructor gets executed, so it seems to be view related issue. The page seems to open but not displayed properly because the current page which should remain in the background remains visible but is totally unresponsive. And when clicking multiple times on the place where the back button would of been in the new page sometimes it registers a back button click event and closes the page on top that happens to be invisible. Closing animation is shown in that case. Also sometimes it registers double click event and closes also the page that is underneath (unresponsive page) resulting in blank screen.
Would you be able to create a minimal test case that replicates this issue?
I was able to create a thumbed down version of my app where the issue persists. Can I get an email where to send it to? I prefer to send it privately since it is part of proprietary enterprise app.
Sure, you can send it to adam at ionic io
I actually have the same problem but on an iPhone 4s with ios 7.1.2, where the app never goes beyond the first screen. Btw, what's the minimum iOs version for ionic2?
@mebibou I'd like the minimum iOS version to be 7, and we haven't come across anything yet that we shouldn't be able to meet that goal. But this one we'll for sure look into and fix up, thanks.
@adamdbradley ok sounds good, actually I'd like to rectify it was on iPhone 4 and not iPhone 4s, it that makes any difference
After having upgraded to beta 1 this issues does not seem persist anymore. I guess it was solved by the upgrade.
@ErkoKnoll I'm using beta1 and have the problem
@mebibou What inline styles are left on the elements? Is it from any navigation or just pop? Which version of iOS was it not working on? Any JS errors or css styles being applied that that version of iOS does not support? Thanks
@adamdbradley ok I tried again and the home page disappears but I have a black screen, and kind of see a white line on the right side, and inspecting the <ion-tabs> the css is:
opacity: 1;
-webkit-transform: translateX(99.5%);
Obviously when I remove the translate manually from within the inspector then the content appears. Also after that, when I tried to change tabs it takes about 10s the first time the tab loads, and around 3s after that, and basically every navigation takes a very long time to work
Note: the code behind is this._nav.push(TabsPage);. iOs version: 7.1.2 (iPhone 4), no JS error
Ok, I think I have it fixed with this commit: https://github.com/driftyco/ionic/commit/4524e5ad7dd1561c85fa89497530fd54f53d4612
This will go out in the next release soon, thanks!
Hi, i have the same problem with the beta10
I seem to have a similar problem. A specific page does not seem to open at first attempt when pushed in. And when pushed in the second time it opens. However in the background it does invoke the constructor at first attempt but just renders invisibly. Second time it opens up properly but when when back button is pressed then the secondly opened page closes but the invisible page keeps blocking the rendering of the page that was underneath, though events go through and when back button is pressed again then the page that was underneath that was blocked from rendering displays properly rendered content. I cant seem to figure out why this specific page acts like this, even removed most of the content and kept "Hello World" there, still didn't solve it while the other pages that are opened from the same sub page open up correctly.
I'm experiencing this bug too. Also on beta10 and only on iOS. Navigation starts out being single click but after navigating around I often need to click twice to get the page to open (I can re-create this in the iOS simulator, hence the clicking). I can't recreate this by a simple "Ionic serve" and doing testing in Chrome.
There aren't any javascript errors before this happens. Not sure exactly why this breaks. Should I open a new issue or do we keep the discussion here?
Hello, thanks for opening an issue with us! Would you be able to provide a plunker that demonstrates this issue? Thanks for using Ionic!
Same problem here, but with Android too.
To elaborate, the problem does not occur when running ionic serve and testing the app within Chrome. It only happens after the app is deployed on the actual device, in my case a Wiko Iggy (Android 4.2.2). I am using Crosswalk.
Same problem with [email protected] :( Tested on iphone6s.
+1 ....
Hello all! Would any of you guys be able to post a repo that i can use to reproduce this issue with? Unfortunately, i cannot reproduce it on my iphone 5 or any of my nexus devices with any of my test apps. Thanks!
I'm also experiencing this @jgw96 .
I'm able to reproduce it with this very basic starter ionic2 app. Just adding a button that pushes a new page. https://github.com/andersfa87/wonkyionic2navigation
I can't reproduce it in browser or on a fast device, i.e iPhone 6s. But it does happen in our more complex app, that has more content on the pages. But it's quite easy to make it happen on iPhone 4s and iPhone5.
To make it happen just press the push button and back button very quickly.
iPhone4s: http://i.imgur.com/yQmsG7r.jpg iPhone5: http://i.imgur.com/Ca0F1jg.jpg