Getting Start iOS

Last updated last month

To start using AcquireIO in your project, add one of the following lines to your Podfile according to the version which you wish to integrate.

Initial setup

The steps below use CocoaPods to integrate the AcquireIO SDK.

For more detail, you can also check out our generated iOS docs or review the app store and source code on Github.

Integration using Cocoapods

pod 'AcquireIO' # For normal version

And run pod install or pod update to refresh your cocoapods dependencies.

For issues installing CocoaPods, see their website for help.

Explanation: The AcquireIO SDK uses background mode Audio for when you are video/voice call to agent/visitor. If you have not enable then background voice will not work. When the UIBackgroundModes key contains the audio value, the system’s media frameworks automatically prevent the corresponding app from being suspended when it moves to the background. Go to Project/Targets -> Capabilities -> Background Modes -> Audio, AirPlay (Check)

In iOS 10, Before you access privacy-sensitive data like Camera, Microphone, and so on, you must ask for the authorization, or your app will crash when you access them.

Open the file in your project named info.plist, right click it, opening as Source Code, paste this code below to it. Or you can open info.plist as Property List by default, click the add button, Xcode will give you the suggest completions while typing Privacy - with the help of keyboard and

Remember to write your description why you ask for this authorization, between <string> and </string>, or your app will be rejected by apple:

<!-- Allow Camera -->
<string>$(PRODUCT_NAME) use camera for video chat</string>
<!-- Allow Microphone -->
<string>$(PRODUCT_NAME) use microphone for voice chat</string>
<!-- Allow Photo Library -->
<string>$(PRODUCT_NAME) send photo/video to agent</string>