Using the AT&T Appcelerator Titanium Mobile SDK
On October 22nd AT&T released the Appcelerator® Titanium module at Appcelerator’s CODESTRONG 2012 event. The Appcelerator® Titanium module makes AT&T APIs easily accessible through the Appcelerator Titanium Studio development environment. The AT&T Titanium Mobile SDK significantly reduces the complexity of building applications which utilize AT&T platform services.
We’ve included a “Kitchen Sink” application and source that demonstrates API usage. The APIs included in the module are extensive: Speech, WAP Push, SMS, MMS, In App Messaging, Notary Management, Payment, oAuth, and Location.
The following components provide access to AT&T API Platform:
- Titanium Mobile SDK Native component (iOS & Android)
- Java Script Wrapper Library (compliant with CommonJS specification)
There are a few prerequisites to be able to start using the AT&T Titanium module. Firstly, you must be using one of the supported operating systems for Titanium. At the time of writing this blog, the following operating systems were supported:
Apple Mac OS X
10.6.X (Snow Leopard)
Windows XP (all editions, except Starter Edition)
Service Pack 3
10.04 LTS (Lucid Lynx)
11.10 (Oneiric Ocelot)
Next, you must be using a current version of Titanium Studio. The module was tested with the minimum version of 2.1.2. For more details, please refer to the link here. You’ll also need the Titanium mobile SDK installed with an internet connection (required for API calls), and either the iOS or Android development tools.
Once you have Titanium Studio installed and functioning properly, you can go the Appcelerator Marketplace and download the Appcelerator® Titanium module here.
The module is comprised of several zip files. Your browser will download the file – downloads_3812_ATT-Titanium-API-module_v2.zip. Once you extract the zip file, you’ll notice the zip file is comprised of two zip files (documentation and the module), an installation guide, and license and readme files.
To load the module, create a new Titanium module project (file->New Titanium Mobile Project), and fill out the project name, App Id and Android or iOS deployments. When the workspace refreshes, we’ll be ready to install the Appcelerator® Titanium module.
To install the module, click (Help->Install Titanium Module).
Click the “Browse” button and point the load dialog to att-titanium-module-1.0.0.zip.
Be sure Output Location is your mobile app.
The module will be extracted and installed, and your workspace will be refreshed.
You’ve now completed all the steps on the Appcelerator side to install the module.
You must also register on the AT&T Developer Program website and acquire Sandbox keys for the APIs to function. To send messages on the AT&T network, a secret key and an API key are required. These keys can be obtained by joining the AT&T Developer Program.
There are two types of keys for the AT&T API:
- Sandbox Keys – These keys are available for free, and allow programmers to demonstrate proof-of-concept and perform testing on application using the AT&T APIs.
- Production Keys – These keys provide the same capabilities as the ‘Sandbox Keys’, but are designed to handle a much larger amount of traffic.
To learn more about how to obtain these keys, visit http://developer.att.com.