martinkasa / capacitor-secure-storage-plugin

Capacitor plugin for storing string values securly on iOS and Android.
MIT License
154 stars 56 forks source link

After Reinstalling the app storage is available. #70

Open Saqib92 opened 1 year ago

Saqib92 commented 1 year ago

When user uninstall the app and then reinstall the storage is still available. It should get clear on uninstall. Is there a way to clear storage on app uninstall. Facing this behaviour on both Android and IOS.

martinkasa commented 1 year ago

check this: https://github.com/martinkasa/capacitor-secure-storage-plugin/issues/31

Saqib92 commented 1 year ago

check this: #31

didn't work. still facing same issue.

tomek3e commented 1 year ago

If you are still facing the issue - the plugin stores with custom KeychainWrapper instance, hence KeychainWrapper.standard descibed in the link will not work. This does:

if !UserDefaults.standard.bool(forKey: "firstTimeLaunchOccurred") {
            // capacitor secure storage plugin stores with custom keychain instance
            let keychainWrapper =  KeychainWrapper.init(serviceName: "cap_sec")
            keychainWrapper.removeAllKeys()
            UserDefaults.standard.set(true, forKey:  "firstTimeLaunchOccurred")
}
stephan-fischer commented 3 months ago

When will an update appear? its unusable at the moment for me.

Thank you!