ionic3 如何接到push信息后 调用LocalNotification

Kiuyam
2017-07-24 14:40 357 0
this.jpush.init();


    this.jpush.addLocalNotification('11', '22', 'title', '33', 'broadcastTime', 'extras');
    //收到通知时会触发该事件。
    document.addEventListener("jpush.receiveNotification", function (event) {
      alert(this.pushmes.title + "----" + this.pushmes.alert);
    }, false);

1个回答

热门排序