##Basic Setup
- Add the
krooshal.js
(from within Krooshal SDK) to your project. - Add
var krooshal = require('krooshal');
to the files in which you wish to access Krooshal. - Invoke
install
andcheckForUpdate
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();
});
- Ensure proper installation of
Titanium Studio
,android sdk
and/orXcode
- Import
Krooshal Example
project into your workspace - Register your app and get apiKey from krooshal.com
- Open app.js and paste in your apiKey
- Build and run your project
##Requirements
- Titanium® SDK 2.x +
- Internet connectivity