android-client
android-client copied to clipboard
Feature: Adding a network receiver for online/offline mode
Summary: There are many problems occuring due to User status switch(online/ offline). It needs to be manually turned on and off when network changes, instead of this i would i like to suggest that making a Network Broadcast Receiver that would listen any change in network and update User Status preference accordingly along with a snackbar showing like "Internet connected/disconnected" like that.
I would like to work on it, if somebody approves.
@PatelVatsalB21 could please follow the issue template, mentioning the details to reproduce this. Also please try to reduce the size of gif. Thanks
It's not an issue but I am suggesting a new feature that can solve many issues. I will take care of size of gif from next time. Thanks 😊
So @PatelVatsalB21 what are you trying to show in ss?
It is one of the problem, while syncing even if connection is there and it is offline mode by user it shows network not available, but actually it is switched to offline mode and internet is connected. That was what I wanted to show in gif. That's why I suggested automatic switching will help user.
Broadcast receivers can be used for auto toggling offline mode. But for checking if the user is online or offline use Network utils. Also for auto toggle, I have created the issue #1584