I’m building a new app with ionic 2, it’s a workout app.
one page handles the whole “workout”, means it loos over the exercises and launches modal for showing the exercise and launches modal for the “rest” timer.
My problem is when I add modal with user events the app get blacked out…
As you can see, the user doesn’t interact with the workout page… it launches it automaticly but when user closes the exercise modal it goes back to the main application page and not to the exercise page.
Had no time to check your code but in my case I had to delay the modal (open and/or close) with setTimeout for 200ms as some page transitions where in progress at the same moment. My app showed a black screen because it didn’t know what view was active underneath the modal.
But maybe this was just my problem and in your case it’s the nav.pop(). I don’t think you need that here because the modal is not added to the view stack, so no need to pop it, I think you pop the previous view instead.
@tzookb Probably you already figured it out, but Modals are not added to the navigation stack (like the Pages) so in your modal code you should not use pop() but dismiss() instead (and also ViewController instead of NavController):