Add custom params to a SsSurveyViewController
Use the created SsSurveyViewController and set params
var params = [String: String]()
params["email"] = "someone@email.com";
ssSurveyViewController.params = params;| // This is a fairly brute-force | |
| // attempt to make sure that if | |
| // you don't want to fill in the survey | |
| // or already did fill it in, you | |
| // won't be asked again for a long time. | |
| jQuery( document ).ready(function() { | |
| if (jQuery('#ss_survey_widget').length != 1) { | |
| return; | |
| } |
SsSurveyViewControllerUse the created SsSurveyViewController and set params
var params = [String: String]()
params["email"] = "someone@email.com";
ssSurveyViewController.params = params;SsSurveyViewController domain and tokenUse the created SsSurveyViewController and set domain and token
ssSurveyViewController.domain = "<account-domain>"
ssSurveyViewController.token = "<sdk-token>"import SurveySparrowSdkSsSurveyViewControllerCreate a SsSurveyViewController
let ssSurveyViewController = SsSurveyViewController()Add SurveySparrowSdk Framework to your project either by using CocoaPods or directly embedding binary
Add the following line to your Podfile file under target
pod 'SurveySparrowSdk', :git => 'https://github.com/surveysparrow/surveysparrow-ios-sdk.git', :tag => '0.2.0'
Add SurveySparrowSdk.xcodeproj or SurveySparrowSdk.framework to your project.