-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(firebase-x): indicate callback methods to verifyPhoneNumber #3457
fix(firebase-x): indicate callback methods to verifyPhoneNumber #3457
Conversation
- and remove callbacks methods on verifyNumber and signInWithCredential functions
Hi @vdias38 Can we have release using this change? |
I hope, but should wait owners to merge it, or use my branch... humm or not. Should wait for merge because you should install compiled code. If urgent, let me know and I'll find a way to share with you a compiled version. |
Thanks, @vdias38 I'll wait till the official release. |
Partially duplicates #3443 |
Hi @CalumMurray , it's not exactly the same, I don't understand why you use callbacks as arguments and how/why you use them. this.firebaseX.verifyPhoneNumber(phone, this.timeOutDuration)
.then( credential => {...})
.catch(error => {...}) Implementation above is compatible with following declaration I've submitted to ionic-native, but not with yours. @Cordova({
callbackOrder: 'reverse'
})
verifyPhoneNumber(
phoneNumber: string,
timeOutDuration: number,
fakeVerificationCode?: string
): Promise<any> {
return;
} Make sense or do I miss something? |
indicate callback methods to verifyPhoneNumber and signInWithCredential functions.
Definition for the non-ionic methods are available as
https://github.com/dpa99c/cordova-plugin-firebasex/blob/master/types/index.d.ts#L120