android / identity-samples

Multiple samples showing the best practices in identity on Android.
Apache License 2.0
322 stars 198 forks source link

Blockstore data not deleted even after application is uninstalled #80

Open somalaya opened 1 month ago

somalaya commented 1 month ago

Issue : Blockstore data not deleted even after application is uninstalled

Repro Steps :

Enabled Backup services (Settings > Google > Backup), Saving data to blockstore using storeBytes API and with shouldBackupToCloud set as false from a test app Uninstalled the test app Re-installed the test app Called retrieveBytes API and I was able to see the data stored previously at step 2. Expectation : Data should have been deleted because shouldBackupToCloud was false. From the public documentation of blockstore, it is written that data persists even after uninstalling the app. But it is not clear if it is expected to persist even if shouldBackupToCloud is set to false. What is the use of shouldBackupToCloud if the data is persisted across installs and uninstalls.