Page MenuHomePhabricator

Investigate a reliable way to clear out defaults/db in the shared app container
Closed, InvalidPublic

Description

The shared app container no longer is cleared out when we uninstall the app.

This is expected because any number of apps can share the data in there

However there are 2 issues:

  1. Users have no way to reset the app if it gets in an unusable state
  2. Developers have no way to test the app from a "clean state"

To alleviate this we need to look into a few things:

  1. Can we deterministically reset all the NSUserdefault values?
  2. Can we add a button to settings to "reset all data"? This should reset user defaults, delete the db, and clear all caches (articles and images)

Event Timeline

JMinor subscribed.

This is really bad for testing/QA in particular since the app state can't really ever be reset on device to simulate a "clean install".

I can't reproduce this behavior. On uninstall/reinstall my saved articles and history are both gone. The NSUserDefaults based prefs are also reset (languages are cleared, the onboarding is re-shown)

JoeWalsh claimed this task.
JoeWalsh moved this task from Ready for Development to Doing on the iOS-app-v5.3.0-Welsh-Dragon board.