IOS - app data erased when we logout in offline

Description

  1. download a VC freshly

  2. bind the VC

  3. turn off the internet in the device

  4. logout and close the app

  5. 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)

Environment

Spillover Reason

None

Attachments

2

Activity

Show:

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 AM
Edited

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

Fixed

Details

Assignee

Reporter

Resolved by

Severity

Critical

Rootcause

Coding issue

Sprint

Priority

Multiple Assignee

Sreenadh S

Created November 8, 2023 at 12:57 PM
Updated January 11, 2024 at 12:11 PM
Resolved December 13, 2023 at 4:45 AM
Loading...