ioni c, один сигнал, некоторые устройства не подписаны - PullRequest
0 голосов
/ 30 апреля 2020

Я создал приложение ionic3 и с помощью одного сигнала уведомления. мой код:

if (this.platform.is('cordova') && this.config.onesignalAppId != "") {
  this.oneSignal.startInit(this.config.onesignalAppId, this.config.onesignalSenderId);

  this.oneSignal.handleNotificationReceived().subscribe(res=>{

    console.log(res);
    this.updateNotifcationStorge(res)
  })

  this.oneSignal.getIds().then((data) => {
   alert("registration" + data.userId);
  })
  this.oneSignal.endInit();
}

но некоторые устройства показаны на одной панели сигналов Не подписано

пожалуйста, помогите мне.

...