The structure to detect foreground/background is already present in App.js via AppState.
We we enter foreground from background, let's add a method shouldLockGroups that returns true/false. For now the logic should be return true, in the future we may want to have a grace period.
The structure to detect foreground/background is already present in App.js via AppState.
We we enter foreground from background, let's add a method
shouldLockGroups
that returns true/false. For now the logic should be return true, in the future we may want to have a grace period.If shouldLockGroups, we should lock all groups.