Ionic not pushing to page neither rendering


I’m calling this function in a service to go to another page. For example, after clicking in notification push message that I receive in app.component.ts, from a modal or whatever.

It works in the whole navigation of the app but sometimes push notificactions doesn’t redirect to the detail page.

import {Injectable} from "@angular/core";
import {NavController} from "ionic-angular";


constructor() {

initRootNav(rootNav: NavController) {
    this.rootNav = rootNav;

go(page: string, params?: any) {
    this.rootNav.push(page, params)

The page does ‘push’ because I can see all the info in console.log but view is not rendered. Uusually works the first time and never again.

I can see all logs but I am still in page1/modal1/whatever

ionViewDidLoad() {

ionViewWillEnter() {
    this.getData(); / does stuff

ionViewDidEnter() {

ionViewCanEnter() {

ionViewWillLeave() {

ionViewDidLeave() {


It’s correct you can’t do that respectively you can’t use the navigation or other components like alert etc. in providers/service

You could only use such components in your pages or app.component.ts