I had a similar problem, edit tsconfig.json file and add this in the compilerOptions:
Moodle for mobile
Moodle mobile custom apps problem
I added the above code, but a error is displayed. the error has been attached.
sorry for the delay in answering, it's been some crazy months lately.
Those errors are displayed when you have installed a wrong version of local-notifications (for some reason, in some cases npm restores a wrong version :/).
Please make sure you have this version: