Essential Kit Tutorials
DocumentationDownload
Latest(v3)
Latest(v3)
  • Introduction
  • Features Overview
  • Whats new in v3
    • Version 3 vs Version 2
    • Release Notes
    • Upgrade from V2
  • Plugin Overview
    • Settings
    • Folder Structure
    • Installation FAQ
    • Upgrade Guide
  • Features
    • 📒Address Book
      • Setup
      • Usage
      • Testing
      • FAQ
    • App Shortcuts
      • Setup
      • Usage
    • 🆕App Updater
      • Setup
      • Usage
    • 💲Billing Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
        • iOS
        • Android
      • FAQ
    • ☁️Cloud Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🔗Deep Link Services
      • Setup
        • iOS
        • Android
      • Usage
      • Testing
      • FAQ
    • 🛠️Utilities (Extras)
      • Usage
    • 💯Game Services
      • Setup
        • iOS
        • Android
      • Usage
      • FAQ
    • 📸Media Services
      • Setup
      • Usage
      • FAQ
    • 📆Native UI
      • Setup
      • Usage
      • FAQ
      • Examples
        • Login Dialog
    • Network Services
      • Setup
      • Usage
      • FAQ
    • ⏰Notification Services
      • Setup
        • iOS
        • Android
      • Usage
      • Examples
        • Nudge to come-back to the game
      • FAQ
    • ⭐Rate My App
      • Setup
      • Usage
      • FAQ
    • 🤝Sharing
      • Setup
      • Usage
        • Message Composer
        • Mail Composer
        • Social Share Composer
        • Share Sheet
      • FAQ
      • Examples
        • Add Attachment Example
    • Task Services
      • Setup
      • Usage
    • 🌏Web View
      • Setup
      • Usage
      • FAQ
      • Examples
        • Loading Pdf File
  • Notes
    • Resolving Android Gradle Build Errors
    • Google Play Services Authentication
    • Target API Level vs Min API Level
    • Handling Refunds for In-App Purchases (Billing Services)
Powered by GitBook
On this page
  • Common
  • What are settings required for making Game Services to work?
  • Android
  • What are different SHA fingerprints that needs to be used for logging in successfully on different environments and how to create them?
  • Why is sign-in failing? Or
  • In the logs I see "APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES". How to solve this?
  • How to get SHA fingerprint from an APK?
  • Why am I getting "keytool command not found"?
  • iOS
  • Why the sign-in dialog doesn't come up second time post user cancelling the sign-in first time?

Was this helpful?

Edit on GitHub
  1. Features
  2. Game Services

FAQ

PreviousUsageNextMedia Services

Last updated 5 months ago

Was this helpful?

Common

What are settings required for making Game Services to work?

Android

  • Play Services Application Id

iOS

  • Make sure Game Services capability is enabled when you create your app id manually in iOS developer portal

Android

What are different SHA fingerprints that needs to be used for logging in successfully on different environments and how to create them?

Each keystore is linked to a SHA fingerprint. Please check below for creating SHA fingerprints on each environment (Debug, Release and Google play)

When development mode is enabled in Build Settings on Unity, it always uses defualt debug.keystore.

Command for getting SHA fingerprint
  keytool -list -v -keystore "PATH_TO_DEBUG_KEYSTORE" -alias androiddebugkey -storepass android -keypass android

Check the below table to get PATH_TO_DEBUG_KEYSTORE (debug.keystore)

Platform

Path

Windows

C:\Users\USERNAME\.android\debug.keystore

(Replace with your username in the above path)

MacOSX

~/.android/debug.keystore

When development mode is OFF its considered to be in release mode. And unity uses the keystore you set in the player settings.

Command for getting SHA fingerprint
keytool -list -v -keystore "PATH_TO_KEYSTORE" -alias ALIAS_NAME -storepass STORE_PASSWORD -keypass KEY_PASSWORD

PATH_TO_KEYSTORE : This is the path of the keystore you created for your app.

Once you upload your apk to play console, you are given an option to let google sign your apk. This is usually called google play signing and its recommended to enable it. Once your app is ready for testing through testing tracks(Alpha/Beta) or production, you need to add the SHA fingerprint once your app signs with google play signing. You can fetch this fingerprint by following below steps

  1. Select Setup and click on App Signing. Under App signing key certificate copy the value of SHA-1 certificate fingerprint

Why is sign-in failing? Or

In the logs I see "APP NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAME SERVICES". How to solve this?

This usually happens for one of the 3 main reasons.

  1. In sandbox mode, the user you are trying to login is not added as a tester in your App's google play console under Play Games Services -> Setup and Management -> Testers

Nearly 99% of the sign in errors are due to not adding the correct credential for the keystore that is used in Google Play Console-> Your App -> Play Games Services -> Setup and Management -> Configuration.

How to get SHA fingerprint from an APK?

You can use the below command for getting the SHA fingerprint quickly

keytool -printcert -jarfile PATH_TO_APK_FILE

Why am I getting "keytool command not found"?

You need to have your JAVA_HOME environment variable set on windows or java should be in the PATH on mac.

keytool is a program from java sdk and you need to have java setup correctly to get it detected. Its used for getting SHA fingerprint from keystore or an APK.

iOS

Why the sign-in dialog doesn't come up second time post user cancelling the sign-in first time?

This is an issue at iOS level which we don't have control. It's a limitation with Game Center and it won't show up the sign-in prompt once user cancels it earlier.

To resolve, user needs to manually sign-in from the settings of his device.

Navigate to and select your app

Use this fingerprint value in the .

Your package name and certificate fingerprint do not match the client ID you registered in Developer Console. This means you haven't added the required SHA fingerprint correctly. You need to copy the printed SHA1 fingerprint in the logcat log and

Your Play Services Application Id was incorrectly entered in

For logging in successfully, you need to create the credential by setting the right SHA fingerprint on google play console. Please check setup .

💯
Google Play Console
Essential Kit Settings
credentials section to create a new oauth client id
add it in the credentials section of google play console.
here
Add SHA Fingerprint for the APK in Google Play Console
SHA fingerprint to consider finishing the configuration on google play console
Use your release keystore along with providing. ALIAS_NAME, STORE_PASS and KEY_PASS
Google play app signing SHA fingerprint