Push page when oneSignal notification clicked


#1

i want to push page to nav stack in ionic 2 after the notification opened i tried to make this initilization finction for oneSignal using OneSignalPluin

  InitOneSignal() {
    this.oneSignal.startInit(this.apiprovider.OneSignalAppid, this.apiprovider.GogoleSenderId);
    this.oneSignal.inFocusDisplaying(this.oneSignal.OSInFocusDisplayOption.Notification);

    this.oneSignal.handleNotificationReceived().subscribe(() => {
      // do something when notification is received
    });
    this.oneSignal.handleNotificationOpened().subscribe((data) => {
      // do something when a notification is opened
      this.helpermethod.showAlertWithOkButton('اهلا بك' , 'نرحب بعودتك للتطبيق').then(___ => {
        this.navCtrl.push(BookingInfoPage, { trip:  data.notification.data.NotificationData }).then(_ =>{

          
        }).catch(err => {
          this.helpermethod.showAlertWithOkButton('اهلا بك' , err)
        });
      });
    });
    this.oneSignal.endInit();
    // End oneSignal Init
    this.oneSignal.sendTags({ "UserType": "user" });
  }

but when the notification opened the alert appeared but the page dose not pushed
any solution for this ?