Help us understand the problem. What is going on with this article?

Cordova で iOS だけ通知をタップしても callback が実行されない

More than 1 year has passed since last update.

phonegap-plugin-push と cordova-plugin-local-notifications には互換性がなく、2つのプラグインをインストールしていた場合, iOS で通知をタップしても 'notification' イベントが呼ばれません。

const option = {/* オプション */}
const push = PushNotification.init(option)

push.on('notification', (data) => {
  // --- Not called ---
})

対策としてはこの2つのプラグインを同時に使うのをやめることです。

参考:
https://github.com/katzer/cordova-plugin-local-notifications/issues/1311
https://github.com/phonegap/phonegap-plugin-push/issues/1959

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away