👋 This is a repository of Cocoapods which are ad-hoc/beta releases of the AcquireIO frontend bundle iOS SDK.
- Real-time Chat.
- Audio/Video Chat (Note: Available only on CORE version).
- iOS 10.0+
- XCode 11.0+
The framework has been written in Swift 5.0, and we recommend use of Swift for the simplest and cleanest integration.
The AcquireIO SDK has a dependency on Socket.IO-Client-Swift. This dependency will be automatically included if installing via Cocoapods.
The SDK also includes the following third-party code:
- Socket.IO-Client-Swift - Socket.IO-client for iOS/OS X.
- GoogleWebRTC - WebRTC SDK for iOS. (Applicable for CORE version only)
These dependencies are vendored and compiled into the SDK, this requires no action and is provided for information purposes only.
Module stability is supported in Swift 5.1 (Xcode 11) and above. The advantage of this is that the SDK no longer needs to be recompiled for every new version of the Swift compiler.
Acquire iOS SDK is built with the "Build Libraries for Distribution" build setting enabled, which means that its dependencies must also be built in the same fashion. However, this is still not fully supported in Cocoapods as of December 2020, therefore some workarounds are required (see installation documentation for details).
The framework package is provided via this repository, which contains the following:
-
README.md - This document!
-
AcquireIOSDK.xcframework - The AcquireIO framework in XCFramework format for iOS devices. You can add this to your project manually if you aren't using a dependency manager.
-
AcquireIO-Lite-Swift.podspec - Required by Cocoapods. You do not need to do anything with this file.
-
Create a Podfile in your project's root directory, if it doesn't exist yet
-
Add the AcquireIO-Lite-Swift in Podfile under your desired target:
target :YourTargetName do pod 'AcquireIO-Lite-Swift' end
-
Add the following to the bottom of your Podfile:
post_install do |installer| installer.pods_project.targets.each do |target| if ['Socket.IO-Client-Swift', 'Starscream'].include? target.name target.build_configurations.each do |config| config.build_settings['BUILD_LIBRARY_FOR_DISTRIBUTION'] = 'YES' end end end end
-
Run below command to install the SDK to your project
$ pod repo update && pod install
-
Open your project using the generated *.xcworkspace file.
Note: If you are new to CocoaPods, go to CocoaPods to learn how to install it.
Since iOS 10, it's mandatory to add 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 and , or your app will be rejected by apple:
<!-- Camera -->
<key>NSCameraUsageDescription</key>
<string>$(PRODUCT_NAME) use camera for video chat</string>
<!-- Photo Library -->
<key>NSPhotoLibraryUsageDescription</key>
<string>$(PRODUCT_NAME) send photo/video to agent</string>
- Our installation guide contains full setup and initialisation instructions.
- Read "Configuring AcquireIO for iOS".
- Read our guide on Push Notifications.
- Please contact us on AcquireIO with any questions you may have, we're only a message away!
AcquireIO for iOS has support for all these things. For full details please read our documentation.
If you have any questions or comments, you can reach us at Acquire
AcquireIO Cocoapods are distributed under Apache License, Version 2.0.