Ionic Storage not working in real devices

I have followed Ionic storage tutorial in [Ionic Storage tutorials].(https://ionicframework.com/docs/v2/storage/)
It works fine in my browser. But in my testing device it not working. Its mean after I closed the app in device and re-lunch it the stored values are gone. But in browser It works properly.

3 Likes

This is my ionic info

Your system information:

_ ordova CLI: 6.4.0_
Ionic Framework Version: 2.0.0-rc.3
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 8
Node Version: v6.9.1
Xcode version: Not installed

Me too also, this is my ionic info also

Your system information:

Cordova CLI: 6.4.0
Ionic Framework Version: 2.0.0-rc.2
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.43
ios-deploy version: 1.8.6
ios-sim version: 5.0.4
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.1 Build version 8B62

I’m testing on iPhone 6S iOs 10.1.1

Solved by removing the plugin of sqllite

cordova plugin rm cordova-sqlite-storage

it work perfecctly without the sqlite plugin

5 Likes

thankz… Itz working.

This doesn’t work for me in either case…

Your system information:

Cordova CLI: 7.0.0
Ionic Framework Version: 3.1.1
Ionic CLI Version: 2.2.3
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.7
ios-deploy version: 1.9.0
ios-sim version: 4.1.1
OS: macOS Sierra
Node Version: v6.9.4
Xcode version: Xcode 8.3.2 Build version 8E2002

1 Like

Any update on this? I tried removing the cordova-sqlite-storage but it is still not working.

my ionic info:

@ionic/cli-utils  : 1.12.0
ionic (Ionic CLI) : 3.12.0

global packages:

cordova (Cordova CLI) : 6.5.0 

local packages:

@ionic/app-scripts : 2.1.4
Cordova Platforms  : android 6.4.0 ios 4.3.1
Ionic Framework    : ionic-angular 3.6.1

System:

ios-deploy : 1.9.2 
ios-sim    : 6.1.2 
Node       : v8.9.1
npm        : 2.15.12 
OS         : macOS High Sierra
Xcode      : Xcode 9.1 Build version 9B55
3 Likes

i have the same problem when i use it with android 6,7,8 it works normal but when it opens with android 9 it 's not working.

Thank you so much you saved my life.