CFT-Chris / capacitor-pwa-firebase-msg

Enable push notifications for Capacitor progressive web apps (PWA) using Firebase as a cloud messaging service
MIT License
3 stars 4 forks source link

Send registration error to registrationError listener #7

Closed diegodlh closed 3 years ago

diegodlh commented 3 years ago

Right now, if registration fails (for example, if the user denies permission), the registration error is caught inside the register function and there is not way to do something about it. In this pull request I am proposing to submit this error to the 'registrationError' listener instead, so that it can be handled in the user's code.