The Codova sandbox allows to test the ReachFive Core SDK on a Cordova application.
Clone this repository from GitHub:
git clone git@github.com:ReachFive/reachfive-sandbox-cordova.git
Switch to the sandbox directory:
cd reachfive-sandbox-cordova
Install the dependencies:
npm install
The account's configuration can be updated in the index.js
file:
script.src = 'https://local-raas.og4.me/js/v1/identity.js?client_id=sg48CdAYohRPeRWZ9j1H';
Replace local-raas.og4.me
by your account's domain and sg48CdAYohRPeRWZ9j1H
by your client ID.
In the commands below, replace
<platform>
by the desired platform's name:browser
,ios
orandroid
.
Add the platform to the project:
./cordova platform add <platform>
Build the sandbox for the platform:
./cordova build <platform>
List the available targets on the platform:
./cordova run <platform> --list
Run a specific target of emulator (here an exemple with iOS):
./cordova run ios --target="iPhone-8, 13.2"
MIT © ReachFive