Go to page when push notification received - OneSignal


In app.component.ts, I’m initializing the OneSignal setup (is that the right place? I can’t make that up from the docs). Everything is working fine and I’m receiving notifications.
When a notification is received and opened, the app must go to a specific page, but I can’t use NavController.
Can anyone help me with this? this.app.getComponent(‘nav’) is not in use anymore. I’m using the latest version of Ionic 2, see the list.

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.8
Ionic App Lib Version: 2.1.4
Ionic App Scripts Version: 0.0.43
ios-deploy version: 1.9.0
ios-sim version: 5.0.11
OS: OS X El Capitan
Node Version: v6.9.0
Xcode version: Xcode 8.1 Build version 8B62

Thanks in advance!

Can you solve this?. In case not, I use the storage for creating a localstorage key when the user click on the notification, after set the rootPage variable with the name of the page to redirect. Now in the page read the localstorage key, do anything and delete the storage value. :slight_smile: I wait that can be useful for you.

I am newbie to Ionic 3, Can you guide me how to mention in code level