From 567f525837694b58b6cf4b9469d02789bb9eac66 Mon Sep 17 00:00:00 2001 From: Brian Soumakian Date: Wed, 25 Apr 2018 23:14:14 -0700 Subject: [PATCH] feat(firebase): add verifyPhoneNumber support for iOS feat(firebase): verifyPhoneNumber now supports iOS --- src/@ionic-native/plugins/firebase/index.ts | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/src/@ionic-native/plugins/firebase/index.ts b/src/@ionic-native/plugins/firebase/index.ts index 35f09a5c8..b37e477d6 100644 --- a/src/@ionic-native/plugins/firebase/index.ts +++ b/src/@ionic-native/plugins/firebase/index.ts @@ -307,32 +307,20 @@ export class Firebase extends IonicNativePlugin { return; } - /** - * Sends an SMS to the user with the SMS verification code and returns the Verification ID required to sign in using phone authentication - * @param {string} phoneNumber - * @returns {Promise} - */ - @Cordova({ - platforms: ['iOS'] - }) - getVerificationID(phoneNumber: string): Promise { - return; - } - /** * Sends an SMS to the user with the SMS verification code and returns the Verification ID required to sign in using phone authentication * @param {string} phoneNumber The phone number, including '+' and country code - * @param {number} timeoutDuration The timeout in sec - no more SMS will be sent to this number until this timeout expires + * @param {number} timeoutDuration (Android only) The timeout in sec - no more SMS will be sent to this number until this timeout expires * @returns {Promise} */ @Cordova({ - platforms: ['Android'], + platforms: ['Android', 'iOS'], successIndex: 2, errorIndex: 3 }) verifyPhoneNumber( phoneNumber: string, - timeoutDuration: number + timeoutDuration: number = 0 ): Promise { return; }