搜尋套件、儲存庫與 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

所屬分類

原始碼儲存庫

使用此套件的專案