Skip to content

iOS

Minimum Requirements

  • iOS 10.0 and higher
  • CocoaPods

Add iOS SDK

  1. Open project's Podfile and add the following line:

pod 'talkplus-ios', '0.2.8'
2. Run pod install and download the TalkPlus SDK.

pod install
3. Add the HiveTalkPlus.framework you downloaded to your project as Do Not Embed format.

Initialize

  1. Import HiveTalkPlus from the class you will use TalkPlus.

import HiveTalkPlus
2. Initialize TalkPlus API before using TalkPlus after calling AuthV4.setup() of Hive SDK.

HiveTalkPlus.initWithHandler { isInit, message in 
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.