mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 08:28:02 -05:00
524 B
524 B
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".
});