Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/clevertap/clevertap-signedcall-ios-sdk
CleverTap SignedCall iOS SDK enables 1-1 VOIP calls on iOS devices and simulators
https://github.com/clevertap/clevertap-signedcall-ios-sdk
Last synced: about 4 hours ago
JSON representation
CleverTap SignedCall iOS SDK enables 1-1 VOIP calls on iOS devices and simulators
- Host: GitHub
- URL: https://github.com/clevertap/clevertap-signedcall-ios-sdk
- Owner: CleverTap
- Created: 2022-03-06T19:04:21.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T10:58:30.000Z (8 months ago)
- Last Synced: 2024-03-26T09:47:58.095Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 19.3 MB
- Stars: 0
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
## 👋 Introduction
CleverTap provides in-app calls via its Signed Call iOS SDK, which means you can make and receive calls in any iOS app if the device has an internet connection and Signed Call iOS SDK. This section shows you how to set up and integrate the Signed Call iOS SDK and manage calls.
To know more about the Signed Call feature, refer to [Signed Call](https://docs.clevertap.com/docs/signed-call).
Refer to [Signed Call Developer Documentation](https://developer.clevertap.com/docs/signed-call-ios-sdk) for detailed installation and integration steps.
## 🎉 Installation
### [CocoaPods](https://cocoapods.org)```
source 'https://github.com/CleverTap/podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'target 'YOUR_TARGET_NAME' do
pod 'CleverTap-SignedCall-SDK'
end
```## 🚀 Integration
Import CleverTap and Signed Call SDKs:
```
import CleverTapSDK
import SignedCallSDK
```In your AppDelegate file, call the registerVoIP function to generate a VoIP token and set pushRegistryDelegate:
```
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
CleverTap.setDebugLevel(CleverTapLogLevel.off.rawValue)
CleverTap.autoIntegrate()
SignedCall.isLoggingEnabled = true
SignedCall.cleverTapInstance = CleverTap.sharedInstance()
guard let rootView = self.window?.rootViewController else {
return true
}
SignedCall.registerVoIP(withRootView: rootView)
return true
}
```Initialize the Signed Call iOS SDK as follows:
```
SignedCall.initSDK(withInitOptions: initOptions) { result in
switch result {
case .success(let success):
print("SDK Initialized! \(success)")
//Handle success scenario
case .failure(let error):
print("SDK initialization failed \(error)")
//Handle failure scenario
}
}
```Use the following code to make a Signed Call:
```
let callOptions = SCCallOptionsModel(context: "contextString", cuid: "cuidString")SignedCall.call(callOptions: callOptions) { result in
switch result {
case .success(let success):
//Handle call initiated
case .failure(let error):
//Handle call failure
}
}
```