Releases: Kommunicate-io/Kommunicate-iOS-SDK
Releases · Kommunicate-io/Kommunicate-iOS-SDK
6.2.1
Enhancements
- Added support to post rich message button notifications.
An observer can be added for 'RichMessageButtonSelected notification as follows:
NotificationCenter.default.addObserver(self, selector: #selector(tappedButton), name: NSNotification.Name("RichMessageButtonSelected"), object: nil)```
6.2.0
6.1.1
6.1.0
6.0.0
Enhancements
- Added Swift Package Manager support for Kommunicate.
- Added a configuration option that prevents the user from sending a message when a conversation is assigned to a bot.
Kommunicate.kmConversationViewConfiguration.restrictMessageTypingWithBots = true
- Now, the conversation assignee can be updated in an existing conversation using
Kommunicate.createConversation()
method. - Feedback input option will be shown every time when a conversation is resolved.
5.14.0
5.13.0
Enhancements
-
Added an option to set the regex for validating phone number in the pre-chat view.
-
Added config options to show and make certain fields mandatory in the pre-chat view.
let preChatVC = KMPreChatFormViewController(configuration: Kommunicate.defaultConfiguration) var preChatConfig = KMPreChatFormViewController.PreChatConfiguration() preChatConfig.optionsToShow = [.name, .phoneNumber] // Set all the fields that will be shown to the user preChatConfig.mandatoryOptions = [.phoneNumber] // Set all the fields that are mandatory preChatConfig.allowEmailOrPhoneNumber = false preChatConfig.phoneNumberRegexPattern = "\\d{2}" // Set phone number validation pattern preChatVC.preChatConfiguration = preChatConfig preChatVC.delegate = self // set the delegate to self to receive callbacks self.present(preChatVC, animated: false, completion: nil) // To present
-
Added an option to change the number of lines of the card template's description label.
5.12.0
Enhancements
- Added an option to set the team ID when creating a new conversation.
let kmConversation = KMConversationBuilder() .withTeamId("<pass a team ID>") .useLastConversation(false) .build() Kommunicate.createConversation(conversation: kmConversation) { result in switch result { case .success(let conversationId): print("Conversation id: ",conversationId) // Launch conversation case .failure(let kmConversationError): print("Failed to create a conversation: ", kmConversationError) } }
- Now, images in image rich message(template ID = 9) can be tapped and previewed just like normal attachment messages.
5.11.0
5.10.0
Enhancements
- Added a check for whitespace and newline characters in the user ID.
- Added an option to show/hide different message menu options. [ALS]
Kommunicate.defaultConfiguration.messageMenuOptions = [.copy]
- Now, chat bar's attachment color config will be applied to the bottom part of the chat bar as well. [ALS]
Kommunicate.defaultConfiguration.chatBarAttachmentViewBackgroundColor = .cyan