id<SINVerification> verification =
[SINVerification SMSVerificationWithApplicationKey:SINCH_Key phoneNumber:phoneNumber];
[verification initiateWithCompletionHandler:^(BOOL success, NSError *error) {
if (success) {
NSLog(@"sucess");
} else {
NSLog(@"error : %@", error.description);
}
}];
这是错误信息:
错误域(Error Domain)= SINVerificationErrorDomain,代码(Code)= 3。"错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 403,“错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 40303,未满足授权需求” UserInfo = 0x7f838254a420 { NSLocalizedDescription = 未满足授权需求}“ UserInfo = 0x7f8382550270 {NSLocalizedDescription=错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 40303,未满足授权需求” UserInfo = 0x7f838254a420 {NSLocalizedDescription= 未满足授权需求},NSUnderlyingError = 0x7f838253c240 "未满足授权需求"}" UserInfo = 0x7f83824a7a40 {NSLocalizedDescription= 错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 403,“错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 40303,未满足授权需求” UserInfo = 0x7f838254a420 {NSLocalizedDescription= 未满足授权需求}“ UserInfo = 0x7f8382550270 {NSLocalizedDescription=错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 40303,未满足授权需求” UserInfo = 0x7f838254a420 {NSLocalizedDescription=未满足授权需求},NSUnderlyingError = 0x7f838253c240 "未满足授权需求"},NSUnderlyingError = 0x7f8382556cc0 "错误域(Error Domain)= SINVerificationServiceErrorDomain,代码(Code)= 40303,未满足授权需求” UserInfo = 0x7f838254a420 {NSLocalizedDescription=未满足授权需求}"
我确定我的电话号码和应用程序密钥是正确的。我已经尝试将"dashboard->verification"设置为公共和应用程序,但没有成功。有什么想法吗?