0x0ece / yopa-native

0 stars 2 forks source link

Forget passphrases when app goes in bg #101

Open 0x0ece opened 6 years ago

0x0ece commented 6 years ago

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.

0x0ece commented 6 years ago

@nax83 could you also test this (meaning just a console.log of the states) on Android, and see if the AppState works well cross-platform?