nativescript-secure-storage icon indicating copy to clipboard operation
nativescript-secure-storage copied to clipboard

Clearing All data do a conflict with nativescrip-ios-uuid !

Open kefahB opened this issue 6 years ago • 1 comments

Hi @EddyVerbruggen,

I remarque since a few days that the uuid on ios change for each install ! do you think this happen because the plugin clear all data about app ?

here is the source code of nativescript-ios-uuid :

function getUUID() {
    var appName = NSBundle.mainBundle.infoDictionary.objectForKey(kCFBundleNameKey);
    var strApplicationUUID = SSKeychain.passwordForServiceAccount(appName, "incoding");
    if (!strApplicationUUID){
        strApplicationUUID = UIDevice.currentDevice.identifierForVendor.UUIDString;
        SSKeychain.setPasswordForServiceAccount(strApplicationUUID, appName, "incoding");
    }

    return strApplicationUUID;
}
exports.getUUID = getUUID;


``
`

kefahB avatar Aug 06 '19 11:08 kefahB

Hi @kefahB, using the 'remove all' feature will wipe all data from the keychain (related to your app), so with the above snippet in mind it will also clear the uuid.

Did you try passing in a service property when interacting with this plugin? That may prevent this issue.

EddyVerbruggen avatar Aug 27 '19 14:08 EddyVerbruggen