Native Script

Native Script is an Open source framework for building truly native mobile apps for iOS & Android with JavaScript.

ConnectyCube JavaScript SDK supports Native Script so you can easily use it in a normal way as you use for Web browser sites with JavaScript or Node.js applications.

It is ready to start developing apps with messaging functionality – chat, user authorization, file attachments, push notifications and many more.

We are also going to continue our effort in the area and release the video chat support soon, so you will be able to implement the video calling capabilities based on WebRTC technology: 1-1 video chat, group chat, mute/unmute opponents, switch camera and video recording.

Before start: Register a FREE ConnectyCube account, then create your 1st app and obtain an app credentials: follow https://connectycube.com/signup

Code samples

Chat code sample for NativeScript

Chat code sample for NativeScript - dialogs list Chat code sample for NativeScript - chat history Chat code sample for NativeScript - menu

Create an App

Create Native Script App, use the Creating apps for reference.

Connect SDK

  1. Simply install the ConnectyCube SDK package in a normal way:

    npm install connectycube --save
  2. You’re ready to go. Open home-page.js file, import ConnectyCube SDK and initialize an instance of the ConnectyCube client:

    var ConnectyCube = require('connectycube');
  3. Now you can initialize the ConnectyCube SDK and connect it to your ConnectyCube app.

  4. Start integrate Messaging capabilities using JavaScript Messaging guide

Have any issues?

Simply create an issue at our GitHub page and we will answer quickly.