Skip to main content
Version: 3.0.0

SDK Integration

This page shows you how to configure the Android/iOS platform.

danger

Unity Android platform setup

1、Enable Android Auto-resolution? Please check "Disable".

2、Enable Android Gradle templates? Please check "Disable".

3、Player Setting

  • Mininum API Level is set to 24
  • Target API Level is set to 35
  • Set IL2CPP
  • Select ARMv7 and ARM64

4、Tick configuration

5、Assets/Plugins/Android/FirebaseApp.androidlib directory path does not exist or is empty cases need to check:

1、 Check whether GoogleService.json(Android) has been copied in Parameter Configuration
2、Restart the unity editor.

Unity iOS platform setup

Parameter Configuration

  1. the requirements document configuration file :
    GoogleService-Info.plist (iOS project will have this file)
    google-services.json (Android project will have this file)
    Added to the project Assets/ root directory. (If the sdk originally had this test file, please delete it, make sure to use the parameter file corresponding to the game)

  1. According to the different platforms (iOS/Android) will be in the requirements document configuration files in the corresponding directory:
    c014eb2a1f1c20f7c698aeb70c2f7af8 (sample, Each project configuration file)
    e214b831d2278f4a08305c521ba98e92 (example, each project configuration file)
    When the Android/iOS package names are the same, the configuration file names are also the same.

Note: The above documents can be found in the requirements document, as shown below:

Project configuration

FB SDK configuration: Fill in the Facebook AppName(Current App Name) App Id and Client Token:

Initialize SDK

void Start()
{
HCSDKManager.Instance.InitializeSdk(InitSdkCallback);
}

private void InitSdkCallback()
{
// SDK initialization completes the callback
}

The initialization method automatically initializes the following parts:

  • AppTrackingTransparency system (iOS ATT box)
  • Statistics
  • Advertising

How do I determine the current SDK version

The SDK Version can be obtained in the HCNativeInterface.cs file, as shown below: