idpass / inji

MIT License
1 stars 2 forks source link

Sharing device remains in sharing state when Requesting phone gets disconnected (like network issue) #208

Open jannahadlaon opened 2 years ago

jannahadlaon commented 2 years ago

Describe the bug Sharing device remains in sharing state when Requesting phone gets disconnected for some reasons like network issue.

To Reproduce Steps to reproduce the behavior:

  1. On device A, go to REQUEST (third icon from left)
  2. On device B, go to SCAN (second icon from left)
  3. On device B, scan QR code displayed on device A
  4. Device A should display “Connected to device. Waiting for VC…”. Device B should display “Sharing VC” card
  5. Enter text on “Reason for sharing (optional)” and click “Accept request and choose VC”
  6. Device B should display card with list of possible VC to share. No VC should be preselected. “Share” button should only be activated when a VC has been selected. Name of receiving device should be displayed.
  7. Disable internet connection in Device A
  8. Select VC to share in Device B and click “Share”

Notice that Device B remains in sharing state while Device A displays a prompt: Disconnected. The connection was interrupted. Please try again.

Expected behavior App should switch back to previous screen

Reproduced on 0.3.0_qa4_1.2.1

Additional information This has been reported by mosip as MID-31

Screenshots Device A Screenshot_20220622-110445_MOSIP Resident App

Device B Screenshot_20220622-111128_MOSIP Resident App