Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

Ionic 3 onesignal go to specific page

$
0
0

@paulbuscano003 wrote:

Hi,

I have an ionic 3 with onesignal And I want to go to specific page.

Please see my app.component

  var notificationOpenedCallback = function(jsonData) {
        if (jsonData.notification.payload.additionalData != null) {
          this.nav.setRoot(TicketsPage);
        } else {
          console.log("no addtional data");
        }
     
      }


      window["plugins"].OneSignal
        .startInit(this.singal_app_id, this.firebase_id)
        .inFocusDisplaying(OneSignal.OSInFocusDisplayOption.InAppAlert)
        .handleNotificationOpened(notificationOpenedCallback)
        // .sendTags({
        //   latitude: 14.5571963,
        //   long: 121.00696984
        // })
        .endInit();
      window["plugins"].OneSignal.setSubscription(true);
      window["plugins"].OneSignal.promptLocation();

it says nav is null

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>