-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disconnected status when the application is in the background #8
Comments
Yes i agree with @marcusgregory, i'm also facing this issue. |
@marcusgregory I tried this in debug mode by putting app in the background (AppLifecycleState.paused) and then resuming it (AppLifecycleState.resumed). I did not see this issue. Can you elaborate on the use case you where you are seeing this issue? |
@aghanti7 int onlineFlag = 0;
StreamSubscription<DataConnectionStatus> listenConnection;
listenConnection = DataConnectionChecker().onStatusChange.listen((status) {
switch (status) {
case DataConnectionStatus.connected:
if (onlineFlag > 0) {
print('Now is online.');
}
break;
case DataConnectionStatus.disconnected:
onlineFlag++;
print('It is offline.');
break;
}
}); |
I've same issue, do you got any solution for this ? @marcusgregory |
Still no solution for this problem @Kishan-Somaiya. |
DataConnectionChecker().onStatusChange.listen always returns 'DataConnectionStatus.disconnected ' status when the application is in the background.
The text was updated successfully, but these errors were encountered: