A JavaScript application using Gluon CloudLink and NativeScript:
- Gluon CloudLink: a framework for connecting your enterprise to your mobile users
- NativeScript: a framework for building native mobile apps with JavaScript
You need a valid subscription to Gluon CloudLink. Choose from one of the available tiers at the CloudLink subscription page to create a Gluon CloudLink account. All tiers come with a 30-day free trial period.
When you've registered successfully, you can sign in to Gluon Dashboard by
using the credentials that you provided during registration. Navigate to the Credentials section
where you will find your client application credentials. Save the file gluoncloudlink_config.json
in the project's app/
folder. The content of the file is a JSON object with a key and secret
that will grant access to Gluon CloudLink:
{
"gluonCredentials": {
"applicationKey": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"applicationSecret": "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
}
}
Make sure you followed the instructions to install NativeScript on your computer. More information can be found at their website: https://www.nativescript.org/
To execute the sample, do as follows:
- Android
tns run android
- iOS
tns run ios