Hi,
I trying receive pushnotifications when my app is close. It is Possible?
Thanks
this._OneSignal.startInit("xxx", "xxxx");
this._OneSignal.inFocusDisplaying(this._OneSignal.OSInFocusDisplayOption.None);
this._OneSignal.setSubscription(true);
this._OneSignal.inFocusDisplaying(window["plugins"].OneSignal.OSInFocusDisplayOption.Notification);
this._OneSignal.handleNotificationReceived().subscribe((data) => {
// if (data.payload.additionalData)
// {
alert("Receveid");
// }
});
this._OneSignal.handleNotificationOpened().subscribe((dataOpen) => {
let dadosDetail = this.schedlueProvider.GetSchedlueByID(30).subscribe(
data => {
}
);
});
this._OneSignal.endInit();