ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.04k stars 1k forks source link

Interface error when getting the value of the areEnabled method from the localNotifications plugin #1182

Closed JhonArlex closed 5 years ago

JhonArlex commented 5 years ago

When a permissions check is done, it is in the documentation and in the implementation in the code or it mentions that returns a data type LocalNotificationEnabledResult, but when checking the result, this returns is another type of data so it gives error in the typescript of ionic The result it gives is the following: { areEnabled: true }

jcesarmobile commented 5 years ago

Yeah, sorry about that, I first used areEnabled and then changed it to value and looks like I forgot to change it on Android.