Skip to content

Run Sample App

tech_integration edited this page Jun 25, 2024 · 3 revisions

This SDK package includes a sample app that demonstrates all core features and provides a good starting point especially if you choose to render surveys using native interface

Android

1. Open Android Studio, and select Import Project option.

2. In the Import Project dialog box, select the example folder in SDK package.

3. Open MainApplication.kt file, and update following TODO section.

// TODO: Please enter your Client ID and Client Secret keys
// Forsta Plus has a number of servers. Please check your server, and initialize configuration
// Example: UK Server
ConfirmitServer.configureUK("<Client ID>", "<Client Secret>")

For more details about configuration, read Forsta Plus Server

4. Run application

iOS

SDK requires Cocoapod 1.10.0 or greater as dependency management tool

1. The sample app requires dependencies to run. In the terminal, navigate to the example folder in SDK package, and run command:

pod install

2. Open example/MyApp.xcworkspace

3. Open AppDelegate.swift file, and update following TODO section.

// TODO: Please enter your Client ID and Client Secret keys
// Forsta Plus has a number of servers. Please check your server, and initialize configuration
// Example: UK Server
ConfirmitServer.configureUK(clientId: "<Client ID>", clientSecret: "<Client Secret>")

For more details about configuration, read Forsta Plus Server

4. Run application

React Native

For React Native sample app, read Run React Native App

Clone this wiki locally