Minimum Requirements
- iOS 10.0 and higher
- CocoaPods
Add iOS SDK
- Open project’s
Podfileand add the following line:
1pod 'talkplus-ios', '0.2.8' - Run
pod installand 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
LoginWithTokenthrough theAuthV4.getHiveTalkPlusLoginToken()function after callingAuthV4.signIn(). - When a user logs out, make sure to call the
Logoutfunction of Hive TalkPlus. If theLogoutfunction call is omitted, the user will continue to receive notifications even when offline.
