Ionic Storage Plugin firsttime return null on android

Hi Guys,
I have done an @ionic/storage plugin integration in my project and i have imports
IonicStorageModule.forRoot({
name: ‘__mydb’,
driverOrder: [‘indexeddb’, ‘sqlite’, ‘websql’]
})
After that, set response data to my storage and getting my storage value in ANDROID device it will return null value in first time. But Second time it will fetching db value.
I don’t know how to resolve the issue. Plz help me Guyz.

Thanks,
Mani

Show us your code.

You are aware that Ionic Storage is async and returns promises?

…and cannot be interacted with until its ready() resolves?

1 Like