The minimum iOS version required is 11.0
To get the QuestionPro's Framework please contact our sales representative.
Steps to add the framework into your iOS application.
1: Select your project from left panel in Xcode and go to General tab.
2: Scroll to 'Frameworks, Libraries and Embedded contents'.
3: Click on '+' button and select 'Add other' -> 'Add Files' then choose the downloaded ‘QuestionProCXFramework.xcframework’.
After adding the framework into your project, you can verify it in the Frameworks panel in Xcode.
Add the required resources in to Build Phases -> Copy Bundle Resources
(Resources are shared in the ‘Resources’ folder along with the framework).
After adding the framework and resources, you need to configure the SDK in AppDelegate class.
1: Import framework
import QuestionProCXFramewor
2: Initialise framework variables
public var iQuestionProCXManager = QuestionProCXManager.sharedManager
let touchPoint = TouchPoint()
3: Initialise framework and set the API key and Data center
iQuestionProCXManager.initwithAPIKey(apiKey: "your_questionpro_workflow_api_key", dataCenter: TouchPoint.DataCenter.DATA_CENTER_AE, withWindow: self.window!)
Trigger the feedback survey in your app wherever you want. All parameters are optional except SurveyId.
let touchPoint = touchPoint.initTouchPoint(surveyId: 13456789);
touchPoint.email = "[email protected]";
touchPoint.firstName = "first_name";
touchPoint.lastName = "last_name";
touchPoint.customVariable1 = "custom_1";
touchPoint.customVariable2 = "custom_2";
touchPoint.customVariable3 = "custom_3";
iQuestionProCXManager.launchFeedbackSurvey(touchPoint: touchPoint)