Skip to content

Commit

Permalink
feat(firebase): add verifyPhoneNumber support for iOS
Browse files Browse the repository at this point in the history
feat(firebase): verifyPhoneNumber now supports iOS
  • Loading branch information
soumak77 authored and danielsogl committed Apr 26, 2018
1 parent 24cd0a9 commit 567f525
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions src/@ionic-native/plugins/firebase/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>}
*/
@Cordova({
platforms: ['iOS']
})
getVerificationID(phoneNumber: string): Promise<any> {
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<any>}
*/
@Cordova({
platforms: ['Android'],
platforms: ['Android', 'iOS'],
successIndex: 2,
errorIndex: 3
})
verifyPhoneNumber(
phoneNumber: string,
timeoutDuration: number
timeoutDuration: number = 0
): Promise<any> {
return;
}
Expand Down

0 comments on commit 567f525

Please sign in to comment.