Navigation from Root page to other page

i use one signal for notification what i actually need is when press on the notification open specific page in my app not in browser

here is my code :

        .startInit("xxxxxxxxx", "xxxxx")
        .handleNotificationOpened(function(jsonData) {
    alert("Notification opened:\n" + JSON.stringify(jsonData.notification.payload.launchURL.substring(27)));
     var productId = jsonData.notification.payload.launchURL;
    let id = productId.substring(27)
    this.nav.setRoot(DetailPage, id);


My system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v7.7.2
Xcode version: Not installed

any idea ?
Thank you in advance

Hi, @Gatewayapp

Could you try

this.nav.push(DetailPage, id);


i try also with no result
thank you :slight_smile:

The second parameter to push() is an object, not a primitive.

1 Like