ForeSee iOS SDK Examples
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BasicSample
BasicSwiftSample
ContactInvitationSample
CustomInvitationSample
ForeSeeSamples.xcworkspace
InternationalizationSample
LocalNotificationSample
Pods
ReplaySample
.gitignore
Podfile
Podfile.lock
README.md
generate_readme.sh

README.md

Sample Projects

These sample projects demonstrate typical usage of the ForeSee SDK.

Installation

All sample projects use Cocoapods. The Pods and workspace folders are included, so it isn't strictly necessary to manually install anything. However, to guarantee that you're using the latest version of the SDK, run:

  1. $ pod update

in the project's root directory.

All projects can be found in:

ForeSeeSamples.xcworkspace

Note: This project should be installed to the primary drive to ensure that the projects will run correctly.

BasicSample

This sample project demonstrates a basic implementation of the ForeSee trigger code in an empty iPhone app. It uses the provided FSInviteView to show a modal dialog to the user inviting them to take a survey when they have met the configured threshold.

BasicSwiftSample

This sample project demonstrates a basic Swift implementation of the ForeSee trigger code. It uses a bridging header to include the SDK.

ContactInvitationSample

This example shows how to provide a user's contact information to the SDK for use in a CONTACT mode survey.

CustomInvitationSample

This example demonstrates the use of a custom invite handler.

InternationalizationSample

This sample project demonstrates how you can customize the default Invite View (FSInviteView) with text of your choosing. It also demonstrates how you can localize the invitation text using standard localization techniques for iOS. The demo app supports English, French, and Spanish. Simply change the language setting of the test device to see the invite in another language.

All strings used by the FSInviteView class are defined in the Localizable.strings file.

LocalNotificationSample

This sample project demonstrates a local notification invite. Accept the invite and then close the application. You will receive a local notification linking the survey.

ReplaySample

This sample project demonstrates cxReplay.