O armazenamento do LocalStorage não persiste no telefone Android quando o aplicativo para de usar o Sencha Touch 2.2 e o Phonegap
Isso está funcionando bem no meu navegador, mas quando eu instalar o aplicativo no meu telefone e usá-lo ... parece bem até que eu forçá-lo a parar e reabrir o aplicativo e, em seguida, todos os meus registros sumiram.
Estou usando 2.2 e Phonegap .... qualquer ajuda seria muito apreciada. Aqui está minha loja:
Ext.define('MyApp.store.Presentations', {
extend: 'Ext.data.Store',
config: {
model: 'MyApp.model.Presentations',
sorter: 'title',
grouper: function (record) {
var upperCased = record.get('title')[0].toUpperCase();
return upperCased; //First letter of the title - how we GROUP these
},
autoLoad: true,
proxy: {
type: 'localstorage',
id: 'presentations'
}
}
});
Eu salvo assim:
var newPresentation = { title: prezTitle, content: '' };
Ext.getStore('Presentations').add(newPresentation);
var newRecord = Ext.getStore('Presentations').sync();