Syed Bob
Syed Bob

Reputation: 23

How to integrate Huawei Mobile Services (HMS) in Unity?

I've found a lot of guidelines on how to integrate HMS in my apps. But majority of them are different or using android studio. May I know which one is the latest guidelines to integrate HMS in my apps for Unity.

Also, I want to enable In-App-Purchase (subscription) for my apps as well. Thanks in advance.

UPDATED

Currently I'm trying to implement In-App-Purchase for huawei. Huawei tech said that users need to signIn first before they can use IAP. But I received this error while testing signIn

How to obtain product info ? here

Upvotes: 1

Views: 1039

Answers (2)

zhangxaochen
zhangxaochen

Reputation: 34017

  1. Unity provides the HMS Plugin here: Unity Asset Store > Huawei HMS Core App Services

The README file contains information about development guides, API references. For more technical questions, please submit a ticket with Unity Customer Service.

  1. Currently Unity does not support the In-App-Purchase (subscription) function. It will be planned in the future.

Update:

For the IAP error: It is a null pointer. Please check for unassigned objects. If you cannot find anything, please delete project and install again cause sometimes these kind of things happening.

Upvotes: 0

m0skit0
m0skit0

Reputation: 25873

AFAIK you have two main options:

  • UDP SDK from Unity, which is the Unity official solution to HMS in Unity. However has been under maintenance for some days now.
  • Unity HMS Plugin from EvilMinds, an open source alternative that is already functional and includes supports to more HMS kits. Looks pretty promising for the future.

In any case you can still manually access HMS Android SDK directly using Unity SDK Android API.

Upvotes: 2

Related Questions