Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49526

OneSignal initialization issue

$
0
0

@hamdanihamza wrote:

I added One Signal plugin on my project and i’m testing on my Huawei P8, at first the app crashes and no subscribers are detected, then i tested on a Galaxy Note and one subscriber is added but the app still crashes …

if (isCordovaAvailable()) {
      this.OneSignal.startInit("OneS_Id", "Google_Id");
      this.OneSignal.inFocusDisplaying(this.OneSignal.OSInFocusDisplayOption.Notification);
      this.OneSignal.handleNotificationReceived().subscribe(data => this.onPushReceived(data.payload));
      this.OneSignal.handleNotificationOpened().subscribe(data => this.onPushOpened(data.notification.payload));
      this.OneSignal.endInit();
    }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49526

Trending Articles



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