NativeScript and the Backend Services JavaScript SDK

NativeScript and the Backend Services JavaScript SDK

In NativeScript apps, you can use the Backend Services JavaScript SDK to connect to the Telerik Platform backend services.

Integrating in Your Application

You can choose to integrate the SDK in your NativeScript app either by installing a npm package or downloading a ZIP file.

  1. Source the Backend Services JavaScript SDK as explained in Getting Started with the JavaScript SDK.
  2. Require the Backend Services JavaScript SDK.

    // If installed as an npm package
    var Everlive = require('everlive-sdk');
    
    // In a NativeScript with Angular 2 app
    import Everlive from 'everlive-sdk';
    
    // If downloaded in the project's app folder
    var Everlive = require('./everlive/min/everlive.all.min');
    
  3. Initialize the Backend Services JavaScript SDK to start using it.

    var el = new Everlive({
        appId: 'your-app-id',
        scheme: 'https'
    });
    

Specifics

Using the Backend Services JavaScript SDK in a NativeScript app has the following limitations:

  • File upload—supported only in base64 format. For more details see the following documentation article: Upload Files in base64 Format.
  • Kendo UI—the Kendo UI section is irrelevant to NativeScript applications.
  • You need the Push Plugin for NativeScript to enable push notifications.
Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.