Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Trigger notification upon at-risk for infection status #101

Open
haveyaseen opened this issue Apr 19, 2020 · 3 comments
Open

Trigger notification upon at-risk for infection status #101

haveyaseen opened this issue Apr 19, 2020 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@haveyaseen
Copy link
Contributor

The user should get a native notification if they are deemed to be infected.

To do that, move this code from HomeBluetooth screen to App.tsx or somewhere where it makes more sense.

  useEffect(() => {
    function refresh(): void {
      if (NativeModules.ItoBluetooth.isPossiblyInfected() && !hasSeenIDMatch) {
        setIDMatchShow(true);
      }
    }
    const interval = setInterval(refresh, 2500);
    return (): void => clearInterval(interval);
  }, [navigation, hasSeenIDMatch]);
@haveyaseen haveyaseen added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Apr 19, 2020
@haveyaseen haveyaseen changed the title Add notification upon checked confirmation Add notification upon infected status Apr 19, 2020
@haveyaseen haveyaseen changed the title Add notification upon infected status Trigger notification upon infected status Apr 19, 2020
@haveyaseen haveyaseen added this to To do in Beta Release Apr 20, 2020
@haveyaseen haveyaseen changed the title Trigger notification upon infected status Trigger notification upon at-risk for infection status Apr 22, 2020
@teamdraftbox
Copy link

teamdraftbox commented Sep 20, 2020

@haveyaseen created pr for the issue please review it
#337

@pompeiifreckles
Copy link

I would like to solve this issue. Can I be assigned this issue.

@pompeiifreckles
Copy link

Can I get a little more info about this. As I can see, there is already code for native notification in one of the screen.
Do you want to get this system throughout the app by placing this code segment in a upper levels in the tree or do you want this feature available in every screen by making this as a component and importing it in every screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
Beta Release
  
To do
Development

No branches or pull requests

3 participants