openwallet-foundation/bifold-wallet

[Credential Offer] App hangs if user accepts credential offer from removed contact

AlexanderShenshin opened this issue · 0 comments

Description of problem

The app hangs in case where user tries to accept credential offer from previously removed contact:

  • After accept, Your credential is on the way modal displayed indefinitely.
  • After closing the modal by using Go back home button, app is not responding.

Note that this issue persist on iOS only, on Android such case is handled good enough (error message is displayed and the app is responding after closing the modal).

Expected behavior

Error message is displayed, there is no Your credential is on the way modal and app is responding.

Preconditions

Connection is created. Credential offer from this contact is received, but not yet accepted. Contact should be deleted once credential offer is received.

Steps to reproduce

  • Open the app.
  • Go to Notifications.
  • Tap View button for the credential offer from the preconditions.
  • Tap Accept button => Your credential is on the way screen is displayed.
  • Tap Go back home button => Home screen is displayed.
  • Tap any button. It can be Credentials button.

Screenshots and/or log output

Note: Video was recorded on older version, but it was confirmed that issue reproduces on specified commit.

Untitled.video.mp4

Environment

  • Occurs on Android
  • Occurs on iOS

Build #: https://github.com/hyperledger/aries-mobile-agent-react-native/tree/db3f18af25f554cd5d616e977e08551b77791c09

iOS Device Model: iPhone 8 Plus / iOS 16

Workaround

Restart the app.

Severity

  • High
  • Medium
  • Low