Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After Reinstalling the app storage is available. #70

Open
Saqib92 opened this issue Nov 25, 2022 · 4 comments
Open

After Reinstalling the app storage is available. #70

Saqib92 opened this issue Nov 25, 2022 · 4 comments

Comments

@Saqib92
Copy link

Saqib92 commented Nov 25, 2022

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
Copy link
Owner

check this: #31

@Saqib92
Copy link
Author

Saqib92 commented Nov 25, 2022

check this: #31

didn't work. still facing same issue.

@tomek3e
Copy link

tomek3e commented Mar 24, 2023

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
Copy link

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

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants