FirebaseGameServicesAuth extension
Methods
-
isUserLinkedToGameService(
) → bool -
Available on FirebaseGameServices, provided by the FirebaseGameServicesAuth extension
Test if a user is already linked to a game service Advised to be call before linkGameServicesCredentialsToCurrentUser() -
signIn(
{String? clientId}) → Future< bool> -
Available on FirebaseGameServices, provided by the FirebaseGameServicesAuth extension
Try to sign in with native Game Service (Play Games on Android and GameCenter on iOS) Returntrue
if successclientId
is only for Android if you want to provide a clientId other than the main one in you google-services.json -
signInLinkedUser(
{String? clientId, bool forceSignInIfCredentialAlreadyUsed = false}) → Future< bool> -
Available on FirebaseGameServices, provided by the FirebaseGameServicesAuth extension
Try to sign link current user with native Game Service (Play Games on Android and GameCenter on iOS) Returntrue
if successclientId
is only for Android if you want to provide a clientId other than the main one in you google-services.jsonforceSignInIfCredentialAlreadyUsed
make user force sign in with game services link failed because of ERROR_CREDENTIAL_ALREADY_IN_USE