facebook twitter hatena line email

Unity/AppleAuth/基本

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

AppleId認証導入方法

非公式だが、apple-signin-unityが使われてる

https://github.com/lupidan/apple-signin-unity

参考:https://goropocha.hatenablog.com/entry/2021/03/27/174352

Packages/manifest.json

"dependencies": {
    "com.lupidan.apple-signin-unity": "https://github.com/lupidan/apple-signin-unity.git?path=Source#1.5.0",
}

証明書のIdentifiersにSign in with Appleを追加

https://developer.apple.com/account/resources/identifiers/list

Identifiersで、"Sign in with Apple"にチェックを付ける。

参考:https://toconakis.tech/sign-in-with-apple/

xcodeプロジェクトで、Sign in with Apple追加

xcodeの"Signing & Capabilities"タブを選択して、"Capability"ボタンを押し、リストからSign in with Appleを選択。

参考:https://toconakis.tech/ios-sign-in-with-apple/

サンプルスクリプト

https://github.com/lupidan/apple-signin-unity