iOS SDK

What is the minimum required iOS version?

The minimum iOS version required is 14.0

Compatible with

Xcode 16.1 and above
Supported Swift versions 4.0, 4.2, 5.0, 6.0


Add SDK into your appllication

arrow_right Steps 1: Add package using cocoa pods
                
                    Add the below line in to your apps podfile and do install the pod.
                        pod 'QuestionProCXFramework', :git => 'https://github.com/surveyanalyticscorp/ios-cx.git'
                    
                
            
arrow_right Steps 2: Configure the SDK into your iOS application
                        
                            
	                        You can initialise the SDK in the ‘AppDelegate’ class or  ‘UIWindowSceneDelegate’ class(If the host application is using UIWindowSceneDelegate).

                            1: Import the SDK into your application.

                            2: Initialize the SDK variables.

                            3: Configure the SDK into your app. You have set the API key and Datacenter while configuring the SDK.
                               QuestionPro’s account manager will provide you with those details.

                            4: Launch the survey: You need to compose the ‘TouchPoint’ object which contains the SurveyId - required field and 
                            other optional fields like email, first name, last name, mobile number, and custom variables up to 3.

                            iOS-sdk-integration-step-2
                        
                    
arrow_right Optional parameters which can be configured with SDK
                        
                            All parameters are optional except SurveyId.
let touchPoint = touchPoint.initTouchPoint(surveyId: surveyId); touchPoint.email = "[email protected]";//Optional touchPoint.mobile = "mobile_number" //Optional touchPoint.firstName = "first_name";//Optional touchPoint.lastName = "last_name";//Optional touchPoint.transactionLanguage = "German";//Optional touchPoint.showInDialog = true; //Optional touchPoint.customVariable1 = "custom_1";//Optional touchPoint.customVariable2 = "custom_2";//Optional touchPoint.customVariable3 = "custom_3";//Optional iQuestionProCXManager.launchFeedbackSurvey(touchPoint: touchPoint)