Skip to content

Latest commit

 

History

History
31 lines (29 loc) · 3.76 KB

ControllingExposureNotification.md

File metadata and controls

31 lines (29 loc) · 3.76 KB

Controlling Exposure Notification

Enables users to start and stop broadcasting and scanning, indicate if Exposure notification Framework are running.

  • Start the Exposure Notification Framework broadcasting and scanning process.
    • PWA requests start of Exposure Notification Framework
    • UseCase StartExposureNotificationUseCase.
    • Repository function: ExposureNotificationRepository.start()
    • Repository implementation: ExposureNotificationRepositoryImpl.start()
      • If not previously started, Exposure Notification Framework shows a user dialog for consent to start exposure detection and get permission.
      • If user grants the required permission, Exposure Notification Framework shows a user dialog to enable Location nad Bluetooth services. This services are required to detect nearby Bluetooth devices, however Exposure Notification Framework and the app don't use device location.
    • If permission is granted and required services are enabled, Exposure Notification Framework will start broadcasting and scanning.
    • If user deny on any of Exposure Notification Framework requests, onboarding is skipped and Exposure Notification Framework disabled.
    • If Exposure Notification Framework is not available on user's device
    • If any of the required services is disabled during Exposure Notification Framework work
      • Broadcasting and scanning process are stopped.
      • Pass services status - UseCase GetServicesStatusUseCase - to PWA to inform user that something is missing.
      • Exposure Notification Framework shows a user dialog to enable required service.
  • Indicate if Exposure Notification Framework is running.
  • Disable broadcasting and scanning.