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.
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.