如何使用 Apple 插件 Ionic 3 添加登录

问题描述

我尝试使用cordova插件

ionic cordova plugin add cordova-plugin-sign-in-with-apple

这个实现代码

//before @component add declare var cordova: any;

    async loginWithAppleID() {
    await cordova.plugins.SignInWithApple.signin(
      {requestedScopes: [0,1]},(succ) => {
        //get email and full name from Apple ID
        console.log(succ)
        let userData = {
          name: succ.fullName.givenname + ' ' + succ.fullName.familyName,email: succ.email,};
// this.AuthApi;
      },(err) => {
        console.error(err)
        console.log(JSON.stringify(err))
      }
    )
  }

而且我正面临错误“操作无法完成。(com.apple.AuthorenticationServices.AuthorizationError 错误 1000。)”。

我在 Xcode 和 Apple Developer Console 上检查了使用 Apple 功能登录,但仍然存在错误。您认为问题出在哪里?

解决方法

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

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

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