Hive TalkPlus supports chat messaging on Hive games.
Download
Release Date | Download | Environment |
---|---|---|
2024-02-28 | HiveTalkPlus v0.2.11 for Android.zip | Android |
2022-06-30 | HiveTalkPlus v0.2.10 for Unity.zip | Unity |
2022-06-30 | HiveTalkPlus v0.2.8 for iOS.zip | iOS |
Release Notes
Hive TalkPlus 0.2.11 (Android)
Changes
- Updated to support Hive SDK 4.23.0.0
Hive TalkPlus 0.2.9 (Android)
Changes
- Updated to support Hive SDK 4.16.4
Getting Started
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 Hive TalkPlus
- 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.
Android
Minimum Requirements
- Android API Level 19
- Android X Compatibility
- Compile and Target SDK version 31
- Build Tool Version 30.0.3
Add Android SDK
- Add the following repository to your project’s
build.gradle
file underallprojects
.
123456allprojects {repositories {...maven { url 'https://jitpack.io' }}} - Add the following dependency to the module’s
build.gradle
file underdependencies
.
123dependencies {implementation 'com.github.adxcorp:talkplus-android:0.2.8'} - Add the
hive-talkplus-x.x.x.aar
file to the module’s libs specified folder.
Initialize
Initialize Hive TalkPlus API before using Hive TalkPlus after calling AuthV4.setup()
of Hive SDK.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
class SampleApplication { override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) ``` HiveTalkPlus.init { isInit, 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.
iOS
Minimum Requirements
- iOS 10.0 and higher
- CocoaPods
Add iOS SDK
- Open project’s
Podfile
and add the following line:
1pod 'talkplus-ios', '0.2.8' - Run
pod install
and download the TalkPlus SDK.
1pod install - Add the HiveTalkPlus.framework you downloaded to your project as Do Not Embed format.
Initialize
- Import HiveTalkPlus from the class you will use HiveTalkPlus.
1import HiveTalkPlus - Initialize Hive TalkPlus API before using Hive TalkPlus after calling
AuthV4.setup()
of Hive SDK.
1234567HiveTalkPlus.initWithHandler { isInit, message inif (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.