capacitor local notification code example
Example: npm for capacitor local notifications
$ ionic cordova plugin add cordova-plugin-local-notification
$ npm install @ionic-native/local-notifications
$ ionic cordova plugin add cordova-plugin-local-notification
$ npm install @ionic-native/local-notifications