title: Ionic 3 redirect from app.component class to another page
body: <p>I’m getting push notification messages and once I receive the message, I want to redirect to another page or show another page instead of home page.</p>
  
  <p><code>NavController</code> doesn’t work here, so I was wondering what will?</p>
  
  <pre><code>export class MyApp{
  
      rootPage:any = HomePage;
  
      constructor(platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, public push: Push) {
  
          platform.ready().then(() =&gt; {
              // Okay, so the platform is ready and our plugins are available.
              // Here you can do any higher level native things you might need.
              statusBar.styleDefault();
              splashScreen.hide();
          });
  
  
          this.push.rx.notification()
              .subscribe((msg) =&gt; {
                  alert(msg.title + ': ' + msg.text);
                  // I want to redirect to another page with msg object instead of HomePage
              });
  
      }
  }
  </code></pre>
  
  <p>Because in app.component.ts under MyApp{}, when I declare <code>constructor(public navCtrl:nacNavController)</code> then I get the following error:</p>
  
  <pre><code>Error: Uncaught (in promise): Error: No provider for NavController!
  Error: No provider for NavController!
      at injectionError (main.js:1509)
      at noProviderError (main.js:1547)
      at ReflectiveInjector_._throwOrNull (main.js:3048)
      at ReflectiveInjector_._getByKeyDefault (main.js:3087)
      at ReflectiveInjector_._getByKey (main.js:3019)
      at ReflectiveInjector_.get (main.js:2888)
      at AppModuleInjector.NgModuleInjector.get (main.js:3835)
      at resolveDep (main.js:11202)
      at createClass (main.js:11071)
      at createDirectiveInstance (main.js:10899)
      at injectionError (main.js:1509)
      at noProviderError (main.js:1547)
      at ReflectiveInjector_._throwOrNull (main.js:3048)
      at ReflectiveInjector_._getByKeyDefault (main.js:3087)
      at ReflectiveInjector_._getByKey (main.js:3019)
      at ReflectiveInjector_.get (main.js:2888)
      at AppModuleInjector.NgModuleInjector.get (main.js:3835)
      at resolveDep (main.js:11202)
      at createClass (main.js:11071)
      at createDirectiveInstance (main.js:10899)
      at c (polyfills.js:3)
      at polyfills.js:3
      at polyfills.js:3
      at t.invoke (polyfills.js:3)
      at r.run (polyfills.js:3)
      at polyfills.js:3
      at t.invokeTask (polyfills.js:3)
      at r.runTask (polyfills.js:3)
      at o (polyfills.js:3)
      at &lt;anonymous&gt;
  </code></pre>