Skip to content

Unity

Minimum Requirements

The supported Unity versions by Hive SDK * Unity 2018.4.24+ * Unity 2019.3.7+ * Unity 2020.1.0+ * Unity 2021.1.0+

Install TalkPlus

  1. Download TalkPlus.
  2. On the Unity toolbar, click Assets > Import Package > Custom Package… and choose the .unitypackage file. Then click Import.

Initialize

  1. To use TalkPlus, declare using directive as follows:
    using HiveTalkPlus;
    
  2. Initialize TalkPlus API before using TalkPlus after calling AuthV4.setup() of Hive SDK.
HiveTalkPlusAPI.Init((Bool isInit, String message) => {
if (isInit) {
// SUCCESS
} else {
// FAILURE
}
});

Login / Logout Process

  • You need to login (LoginWithToken) once TalkPlus API has been initialized.
  • You can get the token required when calling LoginWithToken through the AuthV4.getHiveTalkPlusLoginToken() function after calling AuthV4.signIn().
  • When a user logs out, make sure to call the Logout function of TalkPlus. If the Logout function call is omitted, the user will continue to receive notifications even when offline.