Tapjoy Module for Titanium
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
android
iphone
.gitignore
README.md

README.md

Tapjoy Module for Titanium

This module is a simple interface for connecting to Tapjoy

Build & Install

iPhone

Simply run the ./build.py script in 'iphone/' then copy the com.tapjoy-iphone-*.zip file to your Titanium Library ('/Library/Application Support/Titanium' or '~/Library/Application Support/Titanium')

Android

Navigate into the 'android/' directory and run 'ant'. Then copy the com.tapjoy-android-*.zip file to your Titanium Library ('/Library/Application Support/Titanium' or '~/Library/Application Support/Titanium')

Usage

iPhone

Add the following to app.js:

  var tapjoy = require('com.tapjoy');
  tapjoy.connect('API_KEY');

Android

Add the following to a custom AndroidManifest.xml. Place the following XML in the first '' block in the document.

<meta-data android:name="APP_ID" android:value="API_KEY"/> 
<meta-data android:name="CLIENT_PACKAGE" android:value="com.my.app"/>

<receiver android:name="com.tapjoy.TapjoyReferralTracker" android:exported="true">
        <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
        </intent-filter>
</receiver>

Add the following to app.js:

  var tapjoy = require('com.tapjoy');
  tapjoy.connectCreate();
  Ti.App.addEventListener('close',function(e) {
    tapjoy.connectDestroy();
  });