mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-04-24 03:00:11 -04:00
17 lines
524 B
Markdown
17 lines
524 B
Markdown
# Unique Identifier support for iOS applications
|
|
|
|
_Created by `Andrew Thorp`_
|
|
|
|
Usage:
|
|
|
|
// To GENERATE a Unique ID
|
|
PGUniqueIdentifier.generateUUID(function(result){
|
|
// result will be the new UUID or the UUID that is stored in this apps NSDefaults
|
|
});
|
|
|
|
// To GET the Unique ID
|
|
PGUniqueIdentifier.getUUID(function(result){
|
|
// result will be the UUID stored in this apps NSDefaults
|
|
}, function(error){
|
|
// If a UUID has not yet been generated, you will receive the error "ERROR".
|
|
}); |