ionic-team / ionic-team/ionic-storage
Ionic storage-angular 3.0.6 cannot load data stored with Ionic storage 2.2.0
- Dominant language
- TypeScript
- Stars
- 456
- Forks
- 97
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
We have an app developed a few years ago which uses Ionic storage 2.2.0 - Ionic 3. We did a new app version, using Ionic storage-angular 3.0.6 - Ionic 6. Unfortunately, we found that the data cannot be loaded after we update the app on a device, the value returned is equal to null.
However, when we developed in browser, there is no any problem, data are shared between the 2 apps from storage, and we did not do any customization on the storage name/storeName/dbKey.. We do not use SQL lite either.
We did some tests and found that the data of the old app is not deleted and still exists (if we update the new app by the old one just with a higher version number, the data of the old app is loaded properly.)
Do you have any idea where the problem might come from?
Old app
```ts
@NgModule({
declarations: [
MyApp,
],
imports: [
....
IonicStorageModule.forRoot(),
....
],
```
New app
```ts
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
....
IonicStorageModule.forRoot(),
....
],
```
Contributor guide
Assessment
This issue has not been assessed yet.