EddyVerbruggen / nativescript-secure-storage

:closed_lock_with_key: NativeScript plugin for secure local storage of fi. passwords
MIT License
111 stars 26 forks source link

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

Open kefahB opened 5 years ago

kefahB commented 5 years ago

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;

``
`
EddyVerbruggen commented 4 years ago

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.