Skip to content

Core

Core is the part of the base package that every kit relies on.

  • Starting the plugin: when to initialise it, and what happens if you call a kit first.
  • Is HMS Core available? How to check on the device, and what your game should do on a device without HMS Core (for example, a Google Play device).
  • Results and errors: every call reports success or an error in the same format, with the plugin’s own error code and Huawei’s status code. Expected errors do not throw exceptions.
  • Callbacks and async/await: each operation can be used with a callback or awaited.
  • Threading: results are delivered on Unity’s main thread.
  • The Java bridge: what runs on the Android side and how it is kept small.