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 Hive TalkPlus
- Download Hive TalkPlus.
- Where Hive TalkPlus is posted: Hive Deverlopers > Download > Hive TalkPlus
- On the Unity toolbar, click Assets > Import Package > Custom Package… and choose the .unitypackage file. Then click Import.
Initialize
- To use Hive TalkPlus, declare
using
directive as follows:
1using HiveTalkPlus; - Initialize Hive TalkPlus API before using Hive TalkPlus after calling
AuthV4.setup()
of Hive SDK.
1234567HiveTalkPlusAPI.Init((Bool isInit, String message) => {if (isInit) {// SUCCESS} else {// FAILURE}});
Login / Logout Process
- You need to login (
LoginWithToken
) once Hive TalkPlus API has been initialized. - You can get the token required when calling
LoginWithToken
through theAuthV4.getHiveTalkPlusLoginToken()
function after callingAuthV4.signIn()
. - When a user logs out, make sure to call the
Logout
function of Hive TalkPlus. If theLogout
function call is omitted, the user will continue to receive notifications even when offline.