{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method SignInWithAppleGameCenterAsync | Authentication | 3.1.0
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SignInWithAppleGameCenterAsync

    SignInWithAppleGameCenterAsync(string, string, string, string, ulong, SignInOptions)

    Sign in using AppleGameCenter's teamPlayerId. If no options are used, this will create an account if none exist.

    Declaration
    Task SignInWithAppleGameCenterAsync(string signature, string teamPlayerId, string publicKeyURL, string salt, ulong timestamp, SignInOptions options = null)
    Parameters
    Type Name Description
    string signature

    AppleGameCenter's signature

    string teamPlayerId

    AppleGameCenter's teamPlayerId

    string publicKeyURL

    AppleGameCenter's publicKeyURL

    string salt

    AppleGameCenter's salt

    ulong timestamp

    AppleGameCenter's timestamp

    SignInOptions options

    Options for the operation

    Returns
    Type Description
    Task

    Task for the operation

    Exceptions
    Type Condition
    AuthenticationException

    The task fails with the exception when the task cannot complete successfully due to Authentication specific errors.

    • Throws with ErrorCode InvalidParameters if parameter is empty or invalid.
    • Throws with ErrorCode ClientInvalidUserState if the player has already signed in or a sign-in operation is in progress.
    RequestFailedException

    The task fails with the exception when the task cannot complete successfully.

    • Throws with ErrorCode InvalidToken if the server side returned an invalid access token.
    • Throws with ErrorCode TransportError if the API call failed due to network error. Check Unity logs for more debugging information.
    • Throws with ErrorCode Unknown if the API call failed due to unexpected response from the server. Check Unity logs for more debugging information.
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)