katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.76k forks source link

Property 'un' does not exist on type 'LocalNotifications' #1585

Closed ashwin-kambli closed 1 month ago

ashwin-kambli commented 6 years ago

I upgraded my plugin from 4.3.2 to 4.7.0. Now, I get an error: "Property 'un' does not exist on type 'LocalNotifications'." Why was the "un" function removed in the new version?

Your Environment

Expected Behavior

I want to be able to un-register from the "click" event by calling "un".

Actual Behavior

"un" is no longer a property on LocalNotifications

rwillett commented 6 years ago

What plugin are you using? The plugin versions for here are 0.9.x.

What plugin has version 4.3.2? Is this the Ionic version of this plugin?

ashwin-kambli commented 6 years ago

Yes, this is the Ionic version. Here is an excerpt from my package.json:

     "dependencies": {
        "@angular/common": "2.4.8",
        "@angular/compiler": "2.4.8",
        "@angular/compiler-cli": "2.4.8",
        "@angular/core": "2.4.8",
        "@angular/forms": "2.4.8",
        "@angular/http": "2.4.8",
        "@angular/platform-browser": "2.4.8",
        "@angular/platform-browser-dynamic": "2.4.8",
        "@angular/platform-server": "2.4.8",
        "@angular/tsc-wrapped": "4.4.3",
        "@ionic-native/core": "4.3.2",
        "@ionic-native/local-notifications": "4.7.0",
rwillett commented 6 years ago

Use this version on this site, no idea what the ionic does (or doesn;t do).

I doubt its up to date.