-
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: nav.push does not always open the new page #5484
Comments
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
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 |
Ok, I think I have it fixed with this commit: 4524e5a This will go out in the next release soon, thanks! |
Hi, |
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 |
Same problem with [email protected] :( |
+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. 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. To make it happen just press the push button and back button very quickly. iPhone4s: http://i.imgur.com/yQmsG7r.jpg |
@jgw96 any updates on this issue ? |
Hi, I'm having the same problem, both on ios and android... but I think, that it doesn't matter what kind of device, but rather it is related to the speed/power of given device. My app is quite heavy and running it on a slow device causes this problem. @jgw96 please try with ios simulator and open a page, that generates lots of content/tabs etc. I see, that content is generated, but new page never gets shown (class show-page is not set). |
Hello all! With beta.12 we are now using aot compile which compiles all the templates used in your app at build time instead of when you are using the app on your device. With this change it gets rid of the compiler needing to run when navigating to a new page, which completely fixes this issue even on slower devices. This also results in navigation being much faster than before. Thanks for using Ionic! |
Thanks @jgw96. Do you think, that beta.12 is to be released in days or weeks? |
We had the same issue, but we were doing the .push in the constructor. Once we moved it out of the constructor it solved the issue. So, maybe consider the order that the events are happening. |
@jgw96 Hey Justin, So I just tried the nightly to see if the issue was resolved. Sadly it's not :( https://hurtig.ninja/d/abc741d1.mp4 Here's to hoping you can squeeze in a fix for beta.12 :) |
Also experiencing this in RC1. I have a tab page that pushes a tab-subpage. 75% of the time resulting in a black screen. Looking at the DOM, it appears that the "show-page" class is seldom being added to the new page. |
I have the same behaviour as @curtisblanchette: <!-- Root Page -->
<ng-component class="ion-page show-page" style="z-index: 99;">
...
</ng-component>
<!-- Pushed View with http://ionicframework.com/docs/v2/api/navigation/NavController/ (Not visible) -->
<ng-component class="ion-page">
...
</ng-component> |
still experiencing this in RC2 |
Can you guys try against nightly?
|
I'm having the same problem and this happen for the first time that push the tabs , if i get back to welcome and enter the tabs page again it become visible and acts correctly it works correct on android 6 , ios 10 , browser and ionic serve "ionic-angular": "2.0.0-beta.11", is there is a solution soon ? |
@manucorporat |
I'm having the issue: This is my code....
.........## pageB navigation is not working
.........pageC navigation is working fine
.........pageD navigation is working fine but redirecting to pageA screen |
I'm having the same issue, I'm using "ionic-angular": "2.0.0-rc.3" |
in browser, ionic view, works fine, as soon as I run the navController stopped playing nice |
@JianGuo222 you are 4 versions behind, so I would start with updating ionic first and then see if the error continues. |
still experiencing this in ionic 3.1.1 |
seeing similar behaviour only on android build |
Seeing this behavior on an android build as well, ionic 3.9.2, cordova 7.0.1 |
@niklilland 3.9.2 is the cli version |
I'm also experiencing this problem... Using a sidemenu with functions to push to a new page... one page doesn't seem to work... sidemenu just closes. 3 buttons refering to the following 3 functions:
However, going to a working page, then going back.. the non-working page is displayed (although messed up) and can also be popped... I'm working with:
global packages:
local packages:
System:
[EDIT with Solution for me] I found I used a ngIf to an undefined item. My desktop knew how to ignore it but my android phone seemed to have issues with it. Solved by fixing that code... |
@mebibou ha! my mistake, it's ionic 3.5.3. |
It turned out to be our own bug, not an issue with ionic. Sorry! |
@niklilland What was it in your code? I feel like I'm having the same issue |
@niklilland Nvm. I found that I wasn't closing the ionic loader component properly. |
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
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.
The text was updated successfully, but these errors were encountered: