LogoLogo
WebsiteGuide & TutorialBlogBook a Demo
1.0.0
1.0.0
  • Acquire Developers Hub
  • Acquire
    • Acquire Build Requirement
      • Requirement For Acquire
      • Acquire Speedtest
  • JS API
    • JS Live Chat API
      • Description
      • Installation
      • Visitor
      • Thread
      • Conversation
      • User Verification
    • Quick Link Support
      • One Click Button
      • Social Media Share
    • Backend JS SDK
      • Setup Backend JS SDK
      • Demo Backend SDK
    • Advanced
      • Widget UI
      • Reference
  • Co Browse APIs
    • Acquire Co Browse
      • Co Browse API
  • Acquire API Events
    • WebRTC Related Events
  • iOS
    • SDK Setup Guide
      • Getting Started
      • Integration Guide (Core)
      • Integration Guide (Lite)
      • Manual Setup iOS
      • Acquire Account ID
    • SDK Configuration Example
    • iOS Cobrowse
    • Theme Setting
    • iOS Push Notifications
    • Verify your users
  • Android
    • Getting Started
      • Integration Guide (Core)
      • Integration Guide (Lite)
      • Start using Acquire
    • Acquire APIs
    • Acquire Delegates
    • Custom UI/widget
    • Cross Platform Integrations
  • Webhook API
    • Webhooks Basic
      • Introduction
      • Webhook Integrate Steps
      • Webhook Format
    • Webhook Events
      • On Chat Start
      • On Chat Accept
      • On Chat Message
      • On Chat Close
  • REST APIs
    • OAuth
      • Authorization
      • Tracklog
    • Profiles API
      • Profile List
      • Thread
      • Feedback
      • Profile Details
      • Message
      • Tags
      • Profile Agents
      • Campaigns
      • Profile Add Update
      • Profile Delete
      • Profile Visit History
      • Sender Emails
    • Chat
      • Chat Notes
    • Analytics
      • Chat Statistics
      • Team Analytics
      • Conversion Rate
      • Chat Tag
      • Co browsing
    • Agent
      • Agents List
      • Agent add
      • Edit / Get-agent
      • Update
    • Trigger
      • Triggers List
      • Triggers Detail
    • Operating Hours
      • Save Operating Hours
      • Get Operating Hours
    • Cobrowse
  • Chatbot API
    • Chat Bot
      • Integrate Your Chatbot
      • Dialog Flow V1 Chat-Bot
      • Dialog Flow V2 Chat-Bot
      • Dialog Flow Fulfillment & Custom Response
      • IBM Watson Integration
      • Amazon Lex Bot
      • Azure's QnA Maker
      • Webhook Calling & User Verification
      • Webhook For Reset Password
  • Knowledge Base APIs
    • Help Docs Setup
      • Get FAQ Categories
      • Get Setup Details
      • Get Side List
      • Get Article
      • Get Recent Article
      • Get Categorized Articles
      • Get Suggestion
  • Errors
    • API Error Handling
      • HTTP Responses
Powered by GitBook
On this page
  • Methods
  • Get Cobrowse Code
  • Add Mask on View
  • Remove Masked View
  • Mask Keyboard
  • Pause Sharing
  • Start Sharing
  • End Sharing
  • Remove Stop Sharing Button
  • Example app
  1. iOS

iOS Cobrowse

Learn how to use Cobrowse feature using our native SDK.

Acquire has this feature called Co-browsing which is unique in its sense, as it allows an agent to browse the session with the customer so that he/she can get the desired product/services on their website to purchase.

To use Cobrowse in your own app, you'll need to add our Native SDKs. We've made this as simple as possible, with just a few lines of code.

Once the Native SDKs are added to your app, everything else is done through our web dashboard in any browser - no plugins or installs needed.

Even more he can add overlays or highlight on the customer's device in real time.

Methods

Get Cobrowse Code

Get visitor cobrowse code, when acquire session ready to connect

If acquire support session not started then it will return -1, otherwise session code to start cobrowse session with agent.

Available in SDK version 1.0.9 or later

Sample code

NSInteger code = [[AcquireIO support] getCobrowseCode];
let code = AcquireIO.support().getCobrowseCode()

Add Mask on View

Adds a UIView to mask during the cobrowse session.

Parameter

Type

Description

view

id <UIView>

instance to mask required

Sample Code

//Mask UIImageView
[[AcquireIO support] addMaskedView:self.imageView];

//Mask UITextField
[[AcquireIO support] addMaskedView:self.textfield];

//Mask UITextView
[[AcquireIO support] addMaskedView:self.textview];
//Mask UIImageView
AcquireIO.support().addMaskedView(self.imageView);

//Mask UITextField
AcquireIO.support().addMaskedView(self.textfield);

//Mask UITextView
AcquireIO.support().addMaskedView(self.textview);

Remove Masked View

Remove a UIView from being masked during a cobrowse session.

Sample Code

[[AcquireIO support] removeMaskedView:self.yourMaskedView];
AcquireIO.support().removeMaskedView(self.yourMaskedView);

Mask Keyboard

Masks the keyboard from being shown (Default: NO)

Sample Code

[[AcquireIO support] maskKeyboard:YES]
AcquireIO.support().maskKeyboard(true)

Pause Sharing

Pause an active cobrowse session

Sample Code

[[AcquireIO support] pauseSharing];
AcquireIO.support().pauseSharing()

Start Sharing

Start a cobrowse session with a agent. Note that for Visitor sessions already start sharing when agent start cobrowse session via code. You can Pause and start sharing again.

init: no need to call first time. After pause then you can call this method

Sample Code

[[AcquireIO support] startSharing];
AcquireIO.support().startSharing()

End Sharing

End the cobrowse session. Calling endSharing initiates the process of ending the session.

Show prompt message for end confirmation, see:

Parameter

Parameter

Type

Description

showPrompt

boolean

Pass bool value to show or not confirmation.

Sample Code

[[AcquireIO support] endSharing:NO];
AcquireIO.support().endSharing(false)

Remove Stop Sharing Button

After session is connected you can choose to show our stop button or not.

Add key @"ShowDefaultStopButton" for stop sharing button. Set Value @NO to hide the stop button.

Also check about how to add key in config dictionary, see this:

Example app

Next: How to configure Acquire SDK in App, See this:

PreviousSDK Configuration ExampleNextTheme Setting

Last updated 5 years ago

If you want a sample app for cobrowse_only SDK version , you can download the sample app with integrated our SDK from Github. Example app provided for both Objective-C.

SDK Configuration Example
here
SDK Configuration Example
End sharing prompt message for user
ShowDefaultStopButton