使用 sign_in_with_apple:2.5.4 登录 Flutter

问题描述

我使用 sign_in_with_apple: 2.5.4 实现了 applelogin。它在 iOS 设备上的调试、发布模式下运行良好。但是,当您通过 testflight 下载应用程序时,它不起作用。

使用苹果登录代码如下。

final AuthorizationCredentialAppleID credential = await SignInWithApple.getAppleIDCredential(scopes:
  [
    AppleIDAuthorizationScopes.email,AppleIDAuthorizationScopes.fullName
  ],);

if(credential.email == null){
  email = prefs.getString('autoLoginAppleId');
  name = prefs.getString('autoLoginApplePw');
}else{
  email = credential.email;
  name = credential.familyName + credential.givenname;

  prefs.setString('autoLoginAppleId',email);
  prefs.setString('autoLoginApplePw',name);
  prefs.setString('socialLogin',2.toString());
}

我该如何解决这个问题?

此外,调试、发布、配置文件功能在 Xcode 中添加了 Apple 签名。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)