The intent result is not returned when the intent UI resolver has been opened
Opened this issue · 0 comments
symphony-jean-michael commented
Bug Report
Steps to Reproduce:
- Register 2 applications (B, C) that listen to the same Intent FDC3
- Send the intent from application A
- The Intent UI resolver will opened, and ask to the user to select the application to open B, or C
- Select an application B, or C
- Then in the selected application, the intent is processed and returns a result
==> But the intent result is never received in application A
Expected Result:
The intent result is received in application A (Application that triggers the FDC3 intent)
Actual Result:
The intent result is never received in application A (Application that triggers the FDC3 intent).
This bug only occurs when the intent UI resolver is displayed. It does not occur when there is only one application registered for the intent and therefore no intent UI resolver is used.
The problem seems to come from:
Where the main logic to get and returns the result is only executed when there is only 1 app listening the intent.
So, we should also executes it once the user has selected an application in the UI Resolver (the UI Resolver should return a Promise)
Environment:
- FDC3 v2.0
- Mac OS 12.6.3
- Sail hash commit: 48566d8