cwa-app-ios
cwa-app-ios copied to clipboard
Community build with MockENManager cannot disable Exposure detection
Avoid duplicates
- [X] Bug is not mentioned in the FAQ
- [X] Bug is specific for iOS only, for general issues / questions that apply to iOS and Android please raise them in the documentation repository
- [ ] Bug is not already reported in another issue
Technical details
- Device name: simulator iPhone SE
- iOS version: iOS 14.3
- App version: development version (branch: release/2.10.x as of commit 28aedac81cf81a66bec30ac7814c31f240d0edcf, 02 Sept 2021)
Describe the bug
Disable "Exposure Detection" is broken. The switch is triggered, but the observation of the status change is never triggered, and the status change is never distributed into the application.
Steps to reproduce the issue
- From Home tab press button "Exposure Logging Active"
- See the exposure logging status screen for enabled exposure logging. Both the artwork and the switch are consistent and show that exposure logging is enabled.
- press the switch.
- Now the switch shows "exposure logging disabled" but the artwork still shows enabled.
- Return to Home screen. Also here the switch still shows enabled exposure logging.
- Press again the button "Exposure Logging Active"
- Exposure logging status screen shows consistently enabled exposure logging, but is out of synch with the state of the MockExposureManager.
Expected behaviour
Artwork of exposure logging status screen should change when I disable the Exposure logging.
Possible Fix
Additional context
Internal Tracking-ID: EXPOSUREAPP-9769
It seems that the observer for the change of the state is never triggered. Not sure about the root cause. Can it be a race condition? Is there a bug in the implementation of the MockENManager?
fixed with PR #5146