搜索插件、代码仓与 APP 分类

插件详情v1.1.1

the_apple_sign_in

适用于 Flutter 的 Apple 登录。原生 API 绑定和登录按钮的 Flutter 实现。

iOS
近 30 天下载
9410
喜欢数
67
Pub 分数
140

安装插件

flutter pub add the_apple_sign_in

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

The_apple_sign_in 是一个 Flutter 包,提供对 Apple 的“使用 Apple 登录”服务的原生 API 绑定,可在 iOS 上实现无缝认证。它包含官方登录按钮的 Flutter 实现,确保在所有 Apple 设备上 UI 和行为的一致性。该包简化了与 Apple 安全认证系统的集成,支持匿名账户创建和保护隐私的电子邮件处理等功能。专为 iOS 设计,它利用平台特定功能,提供类似原生的应用体验。

适合场景

  • iOS 应用认证
  • 注重隐私的登录流程
  • 匿名用户注册
  • 与 Apple ID 集成
  • 符合 App Store 指南

主要特点

  • 原生 Apple 登录 API 访问
  • Flutter 兼容的登录按钮
  • 支持私有邮件中继
  • 安全凭证处理
  • 仅支持iOS平台

适合对象

  • 仅限iOS的应用程序
  • 需要 Apple 登录的应用
  • 注重用户隐私的开发者
  • 需要应用商店合规性的项目
  • 使用最少第三方身份验证的应用程序

使用建议

  • 仅限iOS平台
  • 需要 Apple 开发者账户
  • 依赖于iOS系统权限
  • 无 Android 支持
  • 必须符合苹果的认证政策

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

The Apple Sign In - Flutter Plugin

NB! the_apple_sign_in is the revisited and updated version of flutter_apple_sign_in by Tom Gilder (which is not maintained anymore...). Thus, the_apple_sign_in will be maintained and updated by beerstorm

Before beginning, read related docs about Sign In with Apple.

Platform support

This plugin currently supports only iOS platform. If needed, there's a JavaScript framework for Android.

NB! I recommend using iOS 13.x emulators, because iOS 14.x emulators have issues with Apple SignIn. see details from Apple forum >>

Implementing

  1. Configure your app in Xcode to add the "Sign In with Apple" capability
  2. See the example app to see how the API works

FAQs

User information is null after signing in

User details such as email and name are only provided the first time a user signs in to your app with Sign in With Apple. This isn't a limitation of the plugin, it's how the native SDK functions.

On signing in again, all the properties are null. You need to store them the first time you login.

For testing purposes you can revoke the credentials to sign in again:

  1. Sign in to https://appleid.apple.com/account/manage
  2. Go to "Apps & Websites Using Apple ID" and click "Manage"
  3. Select your app
  4. Click "Stop Using Apple ID"
I'm getting errors when trying to build the project

Sign In with Apple requires Xcode 11, as it requires the iOS 13 SDK. Make sure you're up-to-date.

To Do

所属分类

源码仓库

使用此插件的项目