cordova-plugin-uuidgenerator

Generate UUIDs using native functions.

Usage no npm install needed!

<script type="module">
  import cordovaPluginUuidgenerator from 'https://cdn.skypack.dev/cordova-plugin-uuidgenerator';
</script>

README

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.