hi
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 :
window["plugins"].OneSignal
.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);
})
.endInit();
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