Skip to content

Android ID and UUID native module for Titanium Appcelerator

License

Notifications You must be signed in to change notification settings

grazianogrespan/Ti.AndroidID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ti.AndroidID

Overview

This module gives you the possibility to uniquely identify Android devices.

Before using this module I recommend you to read this article :

Usage

Here's an example of how to use the module.

// Load module
var AndroidID  = require('ti.android.deviceid');

Ti.API.error( " ANDROID_ID is : " + AndroidID.getAndroidID());
Ti.API.error( " ANDROID_UUID is : " + AndroidID.getAndroidUUID());

Methods

  • getAndroidID() : returns a string that represents ANDROID_ID of device.

It's a 64-bit number (as a hex string) that is randomly generated when the user first sets up the device and should remain constant for the lifetime of the user's device. The value may change if a factory reset is performed on the device.

  • getAndroidUUID() : returns a string that represents UUID of device.

The UUID is generated randomly and then stored to device internal memory when method getAndroidUUID() is executed. UUID is not maintained if the user reinstalls the app.

About

Android ID and UUID native module for Titanium Appcelerator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published