Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Cordova Unique Device Id (UUID) plugin

    • 0
    • 0
    • 0
    • 0
    • 1
    • 0
    • 0
    • 0
    • 1.80k
    Comment on it

    Hello readers,

    This post is about to get Unique Device Id in cordova application. Here is a plugin which provides UUID and does not change when we uninstall the app. Basically, we get new UUID whenever we re-install the app but with this plugin UUID does not change.

    Supported platforms :

    • Android
    • iOS
    • Windows 8

    First install following plugin through CLI:

    $cordova plugin add cordova-plugin-uniquedeviceid

    After installation we can simply call a method to find device UUID.

    window.plugins.uniqueDeviceID.get(onSuccess, onFail);
    
    function onSuccess(uuid)
    {
       console.log("my device unique Id :"+ uuid);
    }
    
    function onError(error)
    {
       console.log("error :"+ error);
    }

    Hope this will help you.... Have a nice day... :)

 1 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: