当前位置:网站首页>Unity Apple登录接入
Unity Apple登录接入
2022-08-04 16:39:00 【淡定九号】
Unity Apple登录接入
引言
在2019年6月份的全球开发者大会(WWDC)上,苹果宣布了一款新产品:Sign In With Apple。随后苹果更新了App Store审查指南,现在他们要求任何使用第三方或者社交登录服务的新App提供与Apple相同的登录选项,也就是说,你的app上有第三方登录,就必须接入苹果登录Sign In With Apple。
相关链接
开发者中心:登录 - Apple
官方文档:使用入门 - 通过 Apple 登录 - Apple Developer
步骤
1、在unity Asset Store中下载Sign In With Apple Unity Plugin,下载完成之后导入工程。

2、在苹果开发者中心,找到对应的app,开启sign in with apple功能。
3、在项目中合适位置添加Apple登录图标,需要遵循苹果官方文档。
4、添加登录事件即可。导入的工程中有实例工程,可以尝试以下。
private void SignInWithApple()
{
var loginArgs = new AppleAuthLoginArgs(LoginOptions.IncludeEmail | LoginOptions.IncludeFullName);
this._appleAuthManager.LoginWithAppleId(
loginArgs,
credential =>
{
// If a sign in with apple succeeds, we should have obtained the credential with the user id, name, and email, save it
PlayerPrefs.SetString(AppleUserIdKey, credential.User);
this.SetupGameMenu(credential.User, credential);
},
error =>
{
var authorizationErrorCode = error.GetAuthorizationErrorCode();
Debug.LogWarning("Sign in with Apple failed " + authorizationErrorCode.ToString() + " " + error.ToString());
this.SetupLoginMenuForSignInWithApple();
});
}
注意问题
边栏推荐
- 把boot和APP一起烧录进MCU
- Hubei Mobile HG680-LV_S905L3B_wire brush firmware package
- 寻找消失的类名
- redis
- MetaAI科学家解读最新模型:200+语言互译,扩充千倍翻译数据,全球元宇宙用户自由交流
- JVM Tuning-GC Fundamentals and Tuning Key Analysis
- JVM调优-GC基本原理和调优关键分析
- 屏幕分辨率兼容性
- 不需要服务器,教你仅用30行代码搞定实时健康码识别
- gcc7.5.0编译ceres-solver报错‘is_trivially_default_constructible’ is not a member of ‘std’
猜你喜欢

Hubei Telecom Tianyi TY1608_S905L3B_MT7668_ card brush firmware package

嵌入式系统驱动初级【6】——内核定时器

代码重构:面向单元测试

移动魔百盒CM201-1_CW_S905L2_MT7668_线刷固件包

Heilongjiang Mobile New Magic Hundred Box M411A_2+8_S905L3A_wire brush firmware package

华为应用市场“图章链接”功能上线 让APP分发突破机型壁垒

浙江数码代工M301H 免拆通刷_卡刷固件包(语音OK)

湖北移动中兴B860AV2.1_S905L_线刷固件包

美容院管理系统有哪些促销方式?

CSDN21天学习挑战赛——程序流程控制(02)
随机推荐
重新审视分布式系统:永远不会有完美的一致性方案……
不需要服务器,教你仅用30行代码搞定实时健康码识别
AtCoder Beginner Contest 262 部分题解
Does DMS have an interface to get the list of databases under each instance?
CSDN21天学习挑战赛——程序流程控制(02)
【TA-霜狼_may-《百人计划》】美术2.7 Metallic 与 Speculer流程
人造肉在中国还有未来吗?
浙江移动咪咕MGV2000-K4_ZJ_S905l2_7661_线刷固件包
[TA-Frost Wolf_may-"Hundred Talents Project"] Art 2.7 Metallic and Speculer Process
15天升级打怪,成为虚拟时尚创作者
湖北移动HG680-LV_S905L3B_线刷固件包
Minecraft 服务器安装Forge 并添加Mod
\/ PN的综合实验
Real-Time Rendering 4th related resource arrangement (no credit required)
把boot和APP一起烧录进MCU
动手学深度学习_AlexNet
JVM Tuning-GC Fundamentals and Tuning Key Analysis
Go语言gin框架返回json格式里,怎么把某个int属性转成string返回?
海报 | 夏季高温,危化品安全风险的注意事项必须get!
redis
