use inactive as a foreground state
This commit is contained in:
@@ -159,7 +159,10 @@ class StreamChatCoreState extends State<StreamChatCore>
|
||||
|
||||
@override
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
_isInForeground = state == AppLifecycleState.resumed;
|
||||
_isInForeground = [
|
||||
AppLifecycleState.resumed,
|
||||
AppLifecycleState.inactive,
|
||||
].contains(state);
|
||||
if (user != null) {
|
||||
if (_isInForeground) {
|
||||
_onForeground();
|
||||
|
||||
Reference in New Issue
Block a user