离子 3 oneSignal.cancelNotification 不工作(Android 平台)
ionic 3 oneSignal.cancelNotification not working (Android Platform)
在尝试使用
取消特定通知时,已实施并正常工作 ionic native oneSignal 和 cordova oneSignal(Ionic 3,Android 平台)
this.oneSignal.cancelNotification(data.androidNotificationId)
控制台显示警告:
vendor.js:67753 Native: tried calling OneSignal.cancelNotification,
but the OneSignal plugin is not installed;
和
Install the OneSignal plugin: 'ionic cordova plugin add
onesignal-cordova-plugin
没有意义,因为插件和通知与其他方法完美配合,这是唯一不起作用的方法。
谢谢
Requires Authentication Key
Requires your OneSignal App's REST API Key, available in Keys & IDs, unless the notification was created using include_player_ids and targeting only one user.
未实现(在科尔多瓦中)。这就是它不起作用的原因。
ionic native 已经给了你调用的函数,但是此时没有 cordova / native (android / iOS) 背后的实现。
您需要从后端执行此操作。
在尝试使用
取消特定通知时,已实施并正常工作 ionic native oneSignal 和 cordova oneSignal(Ionic 3,Android 平台)this.oneSignal.cancelNotification(data.androidNotificationId)
控制台显示警告:
vendor.js:67753 Native: tried calling OneSignal.cancelNotification, but the OneSignal plugin is not installed;
和
Install the OneSignal plugin: 'ionic cordova plugin add onesignal-cordova-plugin
没有意义,因为插件和通知与其他方法完美配合,这是唯一不起作用的方法。
谢谢
Requires Authentication Key
Requires your OneSignal App's REST API Key, available in Keys & IDs, unless the notification was created using include_player_ids and targeting only one user.
未实现(在科尔多瓦中)。这就是它不起作用的原因。
ionic native 已经给了你调用的函数,但是此时没有 cordova / native (android / iOS) 背后的实现。
您需要从后端执行此操作。