View Full Version : LocalStorage Persistence Issue

24 Jun 2011, 10:28 AM
We are currently writing an application using Sencha Touch / Phonegap. We are using LocalStorageProxy to store some basic app-specific profile information. All seems to work fine, and the user can navigate the app, open and close it, and the data seems to persist - except for one section of the app that makes an ajax call, gets some parameters in response, and uses a basic javascript redirect to send the user off to an external site. Upon coming back into the app, the values in the LocalStorageProxy have been removed. In addition to the redirect, we have also tested writing a basic <a href link into the page, and having the user click the link to go to the web page. This produces the same behavior. Is there something that we are conceptually missing in regards to how the LocalStorageProxy behaves? We are using the most recent versions of Phonegap/Sencha Touch, and are developing on Safari and Droid X

25 Jun 2011, 2:21 AM
maybe you need to call sync() on the store?


25 Jun 2011, 4:49 AM
thanks for the reply, it pointed us in the right direction - it was not the sync() that was causing the issue, but the fact that the script that loaded the store from the callback URL was failing to call load()