Cordova uuid returns different values for debug and signed APK

We have a Cordova app with some dependencies relies on uuid which we obtain using the cordova-uuid-plugin

But the problem is device.uuid returns different values on both debug and signed apks. But as per this thread, it may change when a factory reset is performed in the device