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:
On device A, go to REQUEST (third icon from left)
On device B, go to SCAN (second icon from left)
On device B, scan QR code displayed on device A
Device A should display “Connected to device. Waiting for VC…”. Device B should display “Sharing VC” card
Enter text on “Reason for sharing (optional)” and click “Accept request and choose VC”
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.
Disable internet connection in Device A
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
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:
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](https://user-images.githubusercontent.com/102940764/174935810-06719ce3-4dff-4792-ab58-4383d7656246.jpg)
Device B![Screenshot_20220622-111128_MOSIP Resident App](https://user-images.githubusercontent.com/102940764/174935854-773916f3-0c91-47f1-8dbc-7b5442293d10.jpg)