本演示项目在Unity for Android Build中启用部分华为HMS和AGC服务,对应的类和函数的名称和用法相同。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
siyao d16fa940 update game service 4 年前
Assets update game service 4 年前
Packages Merge pull request #2 from Unity-Technologies/update 4 年前
ProjectSettings Merge pull request #2 from Unity-Technologies/update 4 年前
.DS_Store udpate 4 年前
.gitignore initial commit 4 年前
README.md udpate 4 年前
hhms.keystore initial commit 4 年前

README.md

Hms Demo

Unity 2019 or higher Before build, enter keystore password 123456, and project key password 123456

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

If you add analytic test, you should set activity of AndroidManifest.xml

 <application>
    <activity android:name="com.hms.hms_analytic_activity.HmsAnalyticActivity"
              android:theme="@style/UnityThemeSelector">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
        <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    </activity>
    ...
</application>

Otherwise, just set activity com.unity3d.player.UnityPlayerActivity

Before you click CreateGeo button, you should click update with callback-102 to get your position.