JavaScript Quick Start

The procedure to add the Kii Cloud SDK to your app varies depending on the target environment.

To Use the SDK in a Web App in the Browser

  1. Creating a Kii Application

    Create a Kii Cloud application on the developer portal. Your mobile app will be run under this application.

    If you've already created a Kii Cloud application, you don't have to create a new one.

  2. Adding the SDK to Your Web App

    Install the Kii Cloud SDK in your development environment. By integrating the SDK, you can call the APIs to leverage the Kii Cloud features from your mobile app.

  3. Enabling the Kii Push Notification Feature (MQTT)

    Follow the steps described in this topic to use push notification via MQTT.

To Use the SDK in Cordova

  1. Creating a Kii Application

    Create a Kii Cloud application on the developer portal. Your mobile app will be run under this application.

    If you've already created a Kii Cloud application, you don't have to create a new one.

  2. Installing the SDK to Cordova

    There are several ways to leverage the Kii Cloud SDK in Cordova. In this document, we will present procedures of directly adding the SDK file in the Cordova's config file.

    If you are going to leverage the push notification feature, use the Cordova's phonegap-plugin-push to configure the push notification features with FCM and APNs.

To Use the SDK on Node.js in the Thing

Follow these steps to develop an app running on Node.js for thing implementation or anything.

  1. Creating a Kii Application

    Create a Kii Cloud application on the developer portal. Your thing program will be run under this application.

    If you've already created a Kii Cloud application, you don't have to create a new one.

  2. Running the SDK on Node.js

    Install the Kii Cloud SDK in your development environment. By integrating the SDK, you can call the APIs to leverage the Kii Cloud features from your thing program.

  3. Enabling the Kii Push Notification Feature (MQTT)

    Please follow this procedure if you want to use the MQTT push notification.

After completing the above steps, see Implementing Things with JavaScript SDK to learn how to implement IoT-specific functions on Node.js in the thing.

To Use the SDK with the Server Extention Feature

You can use the Kii Cloud SDK for JavaScript with the server extension feature without any setup. Write your server code by following the steps described in Server Extension Programming Guide.