IOS - app data erased when we logout in offline
Description
Environment
Spillover Reason
Attachments
is duplicated by
Activity

Damodar Guru January 11, 2024 at 6:37 AM
Verified this issue in new build, now app data not erased after logout and reopen the application in offline. Attached the video for reference, hence closing this Jira.
Wallet Device:
Phone make/model: iPhone 11
OS: iOS 15
BLE version: 5.0
Mimoto version:
MOSIP Version: 1.2.0.1
APP link:
IPA test flight version: 0.10.0 ( 16 )

Pooja Babusing K December 11, 2023 at 5:50 AMEdited
The root cause for the issue is after VC Activation the encryption key changes. This happens due to multiple installs and uninstalls, and the previous install’s encryption key is still saved in the keychain and used for encrypting data for the next install. After activating the VC new encryption key is generated. On reloading this new encryption key is used to decrypt the data due to the change in the encryption key the decryption of data fails. We have retested this in sprints 9,10,11,12, this scenario was not handled. The react native key store library has a method that prevents the app from generating the new encryption key for the new install setResetOnAppUninstallTo(false)
. This method is specific to iOS only.
The issue is not with logout or internet connection, we have tested the various scenarios and narrowed it down to VC activation.
cc:

Kratitva Agrawal November 17, 2023 at 4:55 AM
happening on iphone 12 also

Kratitva Agrawal November 16, 2023 at 7:46 AM
valid issue
Details
Assignee
Damodar GuruDamodar GuruReporter
SanthoshSanthoshResolved by
Pooja Babusing KPooja Babusing K(Deactivated)Severity
CriticalRootcause
Coding issueSprint
NonePriority
HighMultiple Assignee
Sreenadh S
Details
Details
Assignee

Reporter
Resolved by

Severity
Rootcause
Sprint
Priority
Multiple Assignee

download a VC freshly
bind the VC
turn off the internet in the device
logout and close the app
reopen the app
Expected :
the app should have its data saved, and all should work as expected
Observed :
the whole app data and user data is erased in the device, this is happening only in IOS
screenshot :
Wallet Device:
Phone make/model: IPHONE 11
OS: IOS 15
BLE version : 5
Verifier Device :
Phone make/model: N/A
OS: N/A
BLE version : N/A
Mimoto version:
MOSIP Version: 1.2.0.1
APP link : https://play.google.com/apps/test/io.mosip.residentapp/56
IPA test flight version : 0.9.1 (61)