Apple Sign-In

iOS

Apple requires every iOS build that offers a third-party sign-in option to also offer Sign in with Apple (App Store Review Guideline 4.8). horizOn User Management supports Apple Sign-In natively.

设置步骤

  1. 1
    创建 Apple Developer 账号

    Enrol at developer.apple.com ($99/year).

  2. 2
    创建 App ID 和 Services ID

    Create an App ID (e.g. com.yourcompany.app) with Sign In with Apple enabled, and a Services ID for web logins.

  3. 3
    在 horizOn Dashboard 中填入凭据

    Go to API Keys, open the key, click Apple Sign-In, and enter your Team ID, Services ID, and Bundle ID.

在游戏中登录

Unity (C#)
C#
1bool signedIn = await UserManager.Instance.SignInWithApple();