如何获取苹果登录颤振的电话号码

时间:2021-07-08 06:07:41

标签: flutter dart apple-sign-in

我正在尝试在我的 Flutter 应用程序中构建苹果登录功能。 以下是我的代码:

final credential = await SignInWithApple.getAppleIDCredential(
          scopes: [
            AppleIDAuthorizationScopes.email,
            AppleIDAuthorizationScopes.fullName,
          ],
          webAuthenticationOptions: WebAuthenticationOptions(
            // TODO: Set the `clientId` and `redirectUri` arguments to the values you entered in the Apple Developer portal during the setup
            clientId: 'Client ID here',
            redirectUri: Uri.parse(
              'Redirect URL here',
            ),
          ));

当用户将他们的 Apple ID 与其电子邮件地址相关联时,Apple 登录功能可以正常工作。但是当用户的 Apple ID 与他们的电话号码相关联时,它会显示错误。 以下是错误信息:

SigninWithAppleAuthorizationError(AuthorizationErrorCode.canceled, The operation could not be completed.
(com.apple.AuthenticationServices.Authorization Error Code 1001.))

当用户输入电话号码而不是电子邮件时,如何使 Apple 登录在我的 Flutter 应用程序上工作。提前致谢

0 个答案:

没有答案
相关问题