Apptentive module for Titanium
Objective-C Python JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Hello. The Apptentive Titanium Module has been discontinued and is no longer supported. We are still actively maintaining our iOS and Android SDKs. If you have any questions, please contact us at

Apptentive Titanium Module

The Apptentive Titanium module allows you to add a quick and easy in-app-feedback mechanism to your Titanium applications. Feedback is sent to the Apptentive web service.

Install Guide

The following steps will lead you through installing Apptentive into your application through the Titanium development environment. This guide assumes your app has been implemented through Titanium already.

Get the Apptentive Module

There are a couple of ways you can get the Apptentive Titanium Module.

Appcelerator Marketplace

Appcelerator logo

The Apptentive Titanium module is available on the Appcelerator Open Mobile Marketplate.


A packaged version of the Apptentive module can be found under the Release tab of this repository.

The packaged module is released as a .zip file:

Setup the Apptentive Module

The Apptentive module package (above) should be unzipped into your Titanium directory:

unzip -u -o -d ~/Library/Application\ Support/Titanium/

Note: Your Titanium SDK may be installed under /Library rather than ~/Library. Adjust these commands accordingly.

Then, in your Titanium app, edit the tiapp.xml file. Add the following near the end of the file:

  <module version="1.0">com.apptentive.titanium</module>

Your final tiapp.xml file should look similar to the following:

<ti:app xmlns:ti="">
  <publisher>Your Company</publisher>
  <description>Our cool Titanium app</description>
  <copyright>Copyright 2013</copyright>
    <module version="1.0">com.apptentive.titanium</module>

Test Module Installation

To test that you have installed the module correctly, edit the app.js file in your Titanium app's resource directory, like so:

var apptentiveModule = require('com.apptentive.titanium');"module is => " + apptentiveModule);

When you run your Titanium app, you should see the following:

Detected third-party module: com.Apptentive.Titanium/1.0

[INFO] [object ComApptentiveTitaniumModule] loaded
[INFO] module is => [object ComApptentiveTitaniumModule]

If you see these statements and no errors appear in the console, the Apptentive module has been installed and loaded correctly in your Titanium app.

Implement Apptentive

Once you have successfully installed the module, you can begin using Apptentive in your Titanium app.

First, set your API Key with the following code snippet:

var apptentiveModule = require('com.apptentive.titanium');

It is important that you set your Apptentive API key, which you can get by signing up on our website.

You can then begin using the features of Apptentive.

Message Center

Get feedback from your customers with the Apptentive Message Center. Add the following piece of code to the event listener that you want to bring up the feedback interface.


The first time you present the Message Center, the user will be presented with an email feedback form. Thereafter, they will be taken to the Message Center. If you reply to your customers' feedback via the Apptentive website, the replies will be pushed to their in-app Message Center.

Check for the number of unread messages with the following:


You can also listen for our ATMessageCenterUnreadCountChangedNotification notification like so:

apptentiveModule.addEventListener('ATMessageCenterUnreadCountChangedNotification', function(e) {'New unread Message Center messages! ' + e.type);


Apptentive also provides an App Store rating flow. A ratings dialog will be displayed based on the number of launches of your application, the amount of time the user has been using it, and the number of significant events the user has completed (for example, levels passed). All of these variables can be modified on Apptentive.

Display the rating flow at a certain point in your code with:


The rating flow will only be shown if all conditions (number of launches, significant events, etc.) have been met.

Log significant events, such as completing a level, with:



Surveys can be created on our website and presented, in-app, to users.

You can check if there are any available surveys that have been downloaded from the server:



apptentiveModule.hasSurveyAvailableWithTags("testSurvey", "testTag"); 

You can also listen for our ATSurveyNewSurveyAvailableNotification notification by adding this code snippet:

apptentiveModule.addEventListener('ATSurveyNewSurveyAvailableNotification', function(e) {'New Apptentive Surveys! ' + e.type);

If surveys are available, present the surveys in the app:



apptentiveModule.presentSurveyControllerWithTags("testSurvey", "testTag");

We will then send a notification when the survey has been sent to Apptentive:

apptentiveModule.addEventListener('ATSurveySentNotification', function(e) {'Apptentive Survey was sent! ' + e.type);

User info

You can pre-load Apptentive with information about the user, which makes their Message Center experience easier:


You can also store arbitrary information about the user, which is then visible in your Message Center:

apptentiveModule.addCustomDataWithKey("data", "key");
apptentiveModule.addCustomDataWithKey("Seattle", "city");

Similarly, you can remove custom data: