tencent cloud

Feedback

Last updated: 2024-04-01 17:34:41

    Quickly Running Cloud Contact Center iOS Demo

    Cloud Contact Center provides an iOS SDK, which allows agents to make phone calls and use other features. It can also implement outbound calls on mobile phones and PCs, and inbound call reception through our SDK. This topic mainly introduces how to quickly run the Cloud Contact Center iOS Demo. Just follow the steps for configuration, and you can run the related features of Cloud Contact Center.

    Environment Requirements

    Xcode 9.0+.
    A real iPhone or iPad running iOS 9.0 or later.
    The project has been configured with a valid developer signature.

    Prerequisites

    You have completed Connecting Your Own Number. You have also finished the corresponding IVR configuration.

    Key Concepts

    1. SdkAppId: The application ID users create on the Cloud Contact Center console. You can create up to 20 Cloud Contact Center applications under one Tencent Cloud account, often starting with 140.
    2. UserID: The account configured by the agent or administrator in the Cloud Contact Center, usually in the format of an email address. After the application is created for the first time, the main account can go to Internal Message (sub-account requires a subscription to Cloud Contact Center product messages) to view the contact center administrator account and password. Under one SDKAppID, multiple UserIDs can be configured. If the configuration limit is exceeded, more agents need to be purchased in Agent Purchase.
    3. SecretId and SecretKey: A certificate needed by developers to call cloud APIs, created on the Tencent Cloud console.
    4. Token: A sign in ticket, which requires calling the cloud API interface CreateSDKLoginToken to access. The correct approach is to place the token calculation code and encryption Key on your business server, and then have the app request access to a token calculated in real time from your server.

    Operation Steps

    Step 1: Download the tccc-agent-ios-example Source Code

    Download the tccc-agent-ios-example source code based on actual business needs.

    Step 2: Configure the tccc-agent-ios-example Project File

    1. Find and open the debug/GenerateTestUserToken.h file.
    2. Set related parameters in the GenerateTestUserToken.h file:
    USERID: Agent account, format : xxx@qq.com
    SDKAppID: Cloud Contact Center SDKAppId, which needs to be replaced with your own account's SDKAppId
    SECRETID: The ID of the encryption key used to calculate the signature
    SECRETKEY: The key of the encryption key used to calculate the signature
    
    
    
    Warning:
    Please do not publish the following code in the online version of your app. The reasons are as follows:
    Although the code in this file can correctly calculate the token, it is only suitable for quickly implementing the basic features of the SDK, but not suitable for online products. This is because the SECRETKEY in the client code is easily decompiled and reverse-engineered, especially in the case of web-based code where the difficulty of cracking is almost negligible. Once your key is leaked, attackers can calculate the correct token to steal your Tencent Cloud traffic.
    The correct approach is to place the token calculation code and encryption Key on your business server, and then have the app request access to a token calculated in real time from your server. Since the cost of cracking the server is higher than that of cracking the client app, the server calculation scheme better protects your encryption Key. For more details, please see Creating SDK Sign in Token

    Step 3: Compile and Run the Demo

    Open the source code project tccc-agent-ios-example with Xcode and click Run.
    1. Click Obtain Token > Log In.
    2. After successfully logging in, click Outbound Call to use the dialing feature.

    Execution Effect

    The basic features are shown in the figure below:
    
    
    

    Exchange and Feedback

    Click here to enter the Cloud Contact Center community, where you can get support from professional engineers to solve your problems.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support