Skip to content

dweebles/krooshal-sdk-titanium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

##Basic Setup

  1. Add the krooshal.js (from within Krooshal SDK) to your project.
  2. Add var krooshal = require('krooshal'); to the files in which you wish to access Krooshal.
  3. Invoke install and checkForUpdate methods.

##Example code

//Require Krooshal
var krslInstallation = require('krslInstallation');

//Install Krooshal
krslInstallation.install(YOUR_API_KEY, function() {
  
  //Optionally persist installationId in your app logic
    Ti.API.info('Krooshal installed with ' + krslInstallation.getInstallationId());
    
    //Associate attributes with this installation
    krslInstallation.tag(['red', 'blue']);
    
    //Check for update
    krslInstallation.checkForUpdate();
});

To run this sample

  1. Ensure proper installation of Titanium Studio, android sdk and/or Xcode
  2. Import Krooshal Example project into your workspace
  3. Register your app and get apiKey from krooshal.com
  4. Open app.js and paste in your apiKey
  5. Build and run your project

##Requirements

  • Titanium® SDK 2.x +
  • Internet connectivity

About

Krooshal SDK for Appcelerator Titanium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published