LocalForage gets cleared on app update, but when switching back to old app it exits


I am updating my app from old version in iOS, the authtoken stored in localforage gives undefined. if i install back the old version user is automatically logged in as authtoken is now found. I am using ionic/storage which uses locaforage with Indexeddb. The update seems to be working fine on android, the device has good memory available. Please help. Only last update on config.xml is that i updated the splash logo on both android and ios