File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,25 @@ FIR_SWIFT_NAME(PhoneAuthProvider)
62
62
63
63
@param phoneNumber The phone number to be verified.
64
64
@param completion The callback to be invoked when the verification flow is finished.
65
+
66
+ @remarks Possible error codes:
67
+ <ul>
68
+ <li>@c FIRAuthErrorCodeAppNotVerified - Indicates that Firebase could not retrieve the
69
+ silent push notification and therefore could not verify your app.</li>
70
+ <li>@c FIRAuthErrorCodeInvalidAppCredential - Indicates that The APNs device token provided
71
+ is either incorrect or does not match the private certificate uploaded to the Firebase
72
+ Console.</li>
73
+ <li>@c FIRAuthErrorCodeQuotaExceeded - Indicates that the phone verification quota for this
74
+ project has been exceeded.</li>
75
+ <li>@c FIRAuthErrorCodeInvalidPhoneNumber - Indicates that the phone number provided is
76
+ invalid.</li>
77
+ <li>@c FIRAuthErrorCodeMissingPhoneNumber - Indicates that a phone number was not provided.
78
+ </li>
79
+ <li>@c FIRAuthErrorCodeMissingAppToken - Indicates that the APNs device token could not be
80
+ obtained. The app may not have set up remote notification correctly, or may fail to
81
+ forward the APNs device token to FIRAuth if app delegate swizzling is disabled.
82
+ </li>
83
+ </ul>
65
84
*/
66
85
- (void )verifyPhoneNumber:(NSString *)phoneNumber
67
86
completion:(nullable FIRVerificationResultCallback)completion;
Original file line number Diff line number Diff line change 230
230
@" To send verification codes, provide a phone number for the recipient." ;
231
231
232
232
/* * @var kFIRAuthErrorMessageInvalidPhoneNumber
233
- @brief Message for @c FIRAuthErrorCodeMissingPhoneNumber error code.
233
+ @brief Message for @c FIRAuthErrorCodeInvalidPhoneNumber error code.
234
234
*/
235
235
static NSString *const kFIRAuthErrorMessageInvalidPhoneNumber =
236
236
@" The format of the phone number provided is incorrect. Please enter the phone number in a "
You can’t perform that action at this time.
0 commit comments