Skip to content

foreseecode/verint-xm-react-native-sample-apps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-sample-apps

Authenticating with the package repository (Android)

You will need to authenticate with GitHub Packages to download our native Android library. To do so, you'll need a personal key which can be generated from your GitHub account by following the instructions. The token will need the read:packages permission.

Once you have that key, you should set two environment variables on your machine: GITHUB_USERNAME for your username, and GITHUB_PERSONAL_KEY for your personal key. Those environment variables will be picked up by the following lines in the each sample project's /build.gradle file:

allprojects {
    repositories {
        maven {
            name = "GitHubPackages"
            url = uri("https://maven.pkg.github.com/foreseecode/public-packages")
            credentials {
                username = System.getenv("GITHUB_USERNAME")
                password = System.getenv("GITHUB_PERSONAL_KEY")
            }
        }
    }
}

See Getting Started guide for more information.

Prerequisites

Make sure React Native and required Environment configured on your machine. See Set Up Your Environment guide before proceeding.

Installing

Clone this repo:

$ git clone https://github.com/foreseecode/react-native-sample-apps.git

Once it's done, you will find 3 project folders:

InSessionSample
ContactSample
LocalNotificationSample

In each project folder, run

$ npm install
$ cd ios
$ pod install

To start a project, run

iOS:
$ npx react-native run-ios

Android:
Have an Android emulator running (quickest way to get started), or a device connected.
$ npx react-native run-android

Projects

InSessionSample

This sample demonstrates a basic implementation of the Verint-XM In-Session Invite code in an empty app. It uses a native view to show a modal dialog to the user inviting them to take a survey when they have met the configured threshold.

ContactInvitationSample

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

LocalNotificationSample

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

About

ForeSee SDK React Native Sample Apps

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5