本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
siyao 9220e1be update agcp doc 3 年前
Assets update gradle and init 3 年前
Documentation update agcp doc 3 年前
Packages update to unity 2020 3 年前
ProjectSettings Merge branch 'master' into unity2020 3 年前
UserSettings update for unity2020 3 年前
.DS_Store update format 3 年前
.gitignore initial commit 4 年前
README.md update readme 3 年前

README.md

HuaweiService Demo

This demo project enables parts of Huawei HMS and AGC services in Unity for Android Build, which is implemented by wrapping HMS and AGC SDK. Name and usage of corresponding classes and functions are the same with Huawei.

The following Kits included.

  • HMS
    • Game Service
    • Ads
    • Push
    • Location
    • Analytics
  • AGC
    • App Linking
    • App Messaging
    • Remote Configuration
    • APM
    • Crash
    • Auth Service
    • Cloud Functions
    • Cloud Storage
    • Cloud DB

Unity 2020 or higher

Before build, add your keystore, create huawei agc project and put agconnect-services.json under Assets/Plugins/Android/

key store path Edit -> Project Settings -> Player -> Android(icon) -> Publishing Settings

In location test, before you click CreateGeo button, you should click update with callback-102 to get your position.

Please check the documentation folder or visite the documentation webpages

Updates: Huawei updates the SDK version, which needs a higher gradle version. Gradle of Unity 2019 does not support it. We upgrade the version to Unity2020. The old version is in branch unity2019. Please open this project using Unity 2020 or higher. If you have to use unity 2019, please download a new gradle and update the unity 2019 configuration.