Search packages, repositories and app categories

Package detailsv1.1.1

the_apple_sign_in

Sign in With Apple for Flutter. Native API bindings and a Flutter implementation of the sign in button.

iOS
30-day downloads
9.4K
Likes
67
Pub points
140

Install package

flutter pub add the_apple_sign_in

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The_apple_sign_in is a Flutter package that provides native API bindings for Apple's Sign in With Apple service, enabling seamless authentication on iOS. It includes a Flutter implementation of the official sign-in button, ensuring consistent UI and behavior across Apple devices. The package simplifies integration with Apple's secure authentication system, supporting features like anonymous account creation and privacy-preserving email handling. Designed specifically for iOS, it leverages platform-specific capabilities to deliver a native-like experience.

Use cases

  • iOS app authentication
  • Privacy-focused login flows
  • Anonymous user sign-up
  • Integration with Apple ID
  • Compliance with App Store guidelines

Key features

  • Native Apple Sign In API access
  • Flutter-compatible sign-in button
  • Support for private email relay
  • Secure credential handling
  • iOS-only platform support

Suitable for

  • iOS-only applications
  • Apps requiring Apple Sign In
  • Developers prioritizing user privacy
  • Projects needing App Store compliance
  • Apps using minimal third-party auth

Considerations

  • Limited to iOS platform
  • Requires Apple Developer account
  • Depends on iOS system permissions
  • No Android support
  • Must comply with Apple's authentication policies

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Source repository

Projects using this package