Apple Sign-In
SDK 已实现 iOS 原生 Apple 登录流程,需要平台插件、Sign in with Apple 功能以及 Apple Developer 和项目配置。在 iOS 之外,应用必须自行处理 OAuth 重定向和令牌传递;Unreal 的便捷方法不会打开浏览器。尚未验证目标设备上的真实提供方登录和 App Store 审核通过情况。
设置步骤
- 1创建 Apple Developer 账号
Enrol at developer.apple.com ($99/year).
- 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在 horizOn Dashboard 中填入凭据
Go to API Keys, open the key, click Apple Sign-In, and enter your Team ID, Services ID, and Bundle ID.
在游戏中登录
C#
1bool signedIn = await UserManager.Instance.SignInWithApple();