Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 902 Bytes

README.md

File metadata and controls

41 lines (29 loc) · 902 Bytes

UUID Generator Plugin for Cordova

Description

This plugins uses native generator functions to provide proper UUIDs that should be much better than anything generated using pure js.

It uses UUID().uuidString on iOS and UUID.randomUUID().toString() on Android.

Usage

You can generate either uppercase or lowercase UUID.

UUIDGenerator.generateUppercase(function(generatedUUID){
        console.log(generatedUUID);
});
UUIDGenerator.generateLowercase(function(generatedUUID){
        console.log(generatedUUID);
});

License

This code is released under the MIT license.

Changelog

1.1.0

  • Removed add-swift-support dependency.

1.0.3

  • Fixed compatibility with swift 4.2.

1.0.2

  • Updated add-swift-support dependency version.

1.0.1

  • Added compatibility with Cordova 8.

1.0.0

  • Initial release supporting both iOS and Android.