ionic-team / ionic-team/ionic-storage

Random data losses on iOS

Aperta
#317 10 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
456
Fork
97
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hey there,
my application is using the ionic-storage.
I've been reported since 1 week now by multiple users all on iOS that they have encountered random data losses.
The application is tracking coffee, and each coffee results into one brew.
Users tell me that some of the brews are missing, but strangly not ALL of them.

Funnyly enough I'm myself on iOS and I don't encouter this issue since months.

Also to mention, the code usage to access the database, storage things etc, haven't been change since more then 5 years, and now randomly this issue appears.

Also half year back, I realized that Apple shoot the database where the entries in the Database where corrupted and entries inside the array got corrupted - But this was from Update 17.1 to 17.2 - which I could fix with backups etc.

The storage driver which is used on the users side is logged as:
```
Storage-Driver: asyncStorage

```

```
IonicStorageModule.forRoot({
name: '__baristaDB',
driverOrder: [
Drivers.IndexedDB,
CordovaSQLiteDriver._driver,
Drivers.LocalStorage,
],
}),
```
Versions:
```
"@ionic/cli": "^7.1.5",
"@ionic/storage": "^4.0.0",
"@ionic/storage-angular": "^4.0.0",
12.0.0 (cordova-lib@12.0.1)
"@angular/common": "^16.2.7",
ios 7.0.0
```

I'd be happy if someone could give me a helping hand here what to try and how to get down to the issues root cause.
Thank you so far
Lars

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Non è indicato alcun file sorgente né alcun test. Inizia riproducendo le segnalazioni di brew mancante su iOS 7 con @ionic/storage 4.0.0 e l’ordine dei driver configurato, quindi esamina il driver asyncStorage e confronta i record persistiti con la perdita di dati segnalata. Il lavoro è completato quando è stata identificata una causa riproducibile e sono stati documentati un fix o una mitigazione verificati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
angular, ios, typescript
Ambito
database, mobile
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
20/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.