Ionic2 open page based on data from push notification with onesignal


I have successfully integrate push notification with my ionic2 project.

How do I open page based on data receive from One Signal? I’m trying to implement tagsReceivedCallBack in One Signal API

My App can read data or tag received. How do I use this.nav.setRoot so that when user open the notification, it will open a page. Attached below is my code snipped on app.js

I have this problem too. I can’t use NavController as I always use when I have to change the page. Anyone please help. :cry:

Are you using Ionic2? In your image it shows that you are using app.js.