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¶
- Download TalkPlus.
- Where TalkPlus is posted: Hive Deverlopers > Download > TalkPlus
- On the Unity toolbar, click Assets > Import Package > Custom Package… and choose the .unitypackage file. Then click Import.
Initialize¶
- To use TalkPlus, declare
using
directive as follows: - 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 theAuthV4.getHiveTalkPlusLoginToken()
function after callingAuthV4.signIn()
. - When a user logs out, make sure to call the
Logout
function of TalkPlus. If theLogout
function call is omitted, the user will continue to receive notifications even when offline.