Local notification not working on ionic v4

Hello, i have been trying for days to figure what could be wrong with the local notification i am trying to implement on my app. I followed the docs step by step but i don’t get any notification. when i checked the console log i found this error:

capacitor-runtime.js:81 ERROR TypeError: this.createCallbackFn is not a function
at Object.exports.hasPermission

this is the version i am using “@ionic-native/android-permissions”: “^5.10.0”,

"@ionic-native/local-notifications": "^5.10.0",