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();
}