React-Native:会话超时应用程序的解决方案

时间:2017-11-20 07:36:42

标签: session events react-native timeout

如何在react-native应用程序中管理会话超时(适用于Android和iOs)。

1. Scenario A:
- User logins in the app -> start timer
- User do nothing... -> after 1 time (e.g: 5') -> User should be logout
2. Scenario B:
- User logins in the app -> start timer
- User close app -> after 1 time (e.g: 10') -> User open app again -> User should be logout...

这种情况的解决方案是什么,或者组件如何捕获应用程序中的任何用户操作(单击,滑动)?非常感谢..

0 个答案:

没有答案