This project is a module for Titanium Appcelerator, which allows Titanium apps that support Android to interact with iBeacons via an easy to use Java API.
Apps can be notified of entering/exiting iBeacon regions, and can enable ranging to receive periodic beacon proximity reports.
This module can be installed and used in Titanium projects like any other module. To download the latest
binary module, check out the dist/
directory in this project.
Once installed, read the documentation (it lives in the documentation/
directory) to learn how to interact with your iBeacons.
If you wish to build this module yourself, you will need a Titanium+Android build environment consisting of:
- Titanium CLI to create module projects (since Release 3.3.0).
- Titanium Mobile SDK 3.2.0 or later
- All of the prerequisites for developing Android applications.
- Android NDK Release 9.d or later
- Ant 1.7.1 or above must be installed and in your system PATH to build from the command line.
- gperf must be installed and in your system PATH.
To build this project:
- Fork a copy
- Edit the
build.properties
file and change each setting therein to point to your local copy of Titanium, Android SDK, and Android NDK. Here is an example of the paths this author uses on a Mac OS X system:
titanium.platform=/Users/jhf/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA/android
android.platform=/Users/jhf/androidsdk/platforms/android-10
android.ndk=/Users/jhf/androidndk
google.apis=/Users/jhf/androidsdk/add-ons/addon-google_apis-google-10
- Run
ant dist
. This creates the distribution in thedist/
directory of the project.
Other targets supported by Titanium include:
ant clean
Removes all generated zips and binaries from previous builds.ant install
Runs the dist build target, generates a test project usingexample/
as the Resources, and then installs it to a connected Android device.ant run.emulator
Launches an Android emulator for the run build target.ant run
Runs the dist build target, generates a test project usingexample/
as the Resources, and then installs it to a running emulator (hint: use the run.emulator target to start up an emulator!).
- James Falkner (Liferay Community Manager)
james.falkner@liferay.com
@schtool
Copyright (c) 2015, Liferay Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
This product includes software developed at The Radius Networks (http://www.radiusnetworks.com/).
Android IBeacon Service
Copyright 2013 Radius Networks