How to use the kinvey-nativescript-sdk.init function in kinvey-nativescript-sdk

To help you get started, we’ve selected a few kinvey-nativescript-sdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github NativeScript / nativescript-app-templates / packages / template-master-detail-kinvey / app / shared / kinvey.common.js View on Github external
const Kinvey = require("kinvey-nativescript-sdk");

const config = require("./config");

/* ***********************************************************
* The {N} Kinvey plugin initialization is explained in the plugin readme here:
* http://devcenter.kinvey.com/nativescript/guides/getting-started#ConfigureYourApp
* In this template, Kinvey is set up with a custom existing project, so that
* You can build and run this template without creating your own Kinvey project.
*************************************************************/
Kinvey.init({
    appKey: config.kinveyAppKey,
    appSecret: config.kinveyAppSecret
});
github NativeScript / nativescript-app-templates / packages / template-enterprise-auth / app / shared / kinvey.common.js View on Github external
const Kinvey = require("kinvey-nativescript-sdk");

/* ***********************************************************
* The {N} Kinvey plugin initialization is explained in the plugin readme here:
* http://devcenter.kinvey.com/nativescript/guides/getting-started#ConfigureYourApp
* In this template, Kinvey is set up with a custom existing project, so that
* You can build and run this template without creating your own Kinvey project.
*************************************************************/
Kinvey.init();