Answer is,
this.oneSignal.addSubscriptionObserver(function (state) {
if (!state.from.subscribed && state.to.subscribed) {
// get player ID
state.to.userId
}
});
Answer is,
this.oneSignal.addSubscriptionObserver(function (state) {
if (!state.from.subscribed && state.to.subscribed) {
// get player ID
state.to.userId
}
});