android-client icon indicating copy to clipboard operation
android-client copied to clipboard

Feature: Adding a network receiver for online/offline mode

Open PatelVatsalB21 opened this issue 4 years ago • 6 comments

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.

GIF-201130_180532

PatelVatsalB21 avatar Nov 30 '20 12:11 PatelVatsalB21

I would like to work on it, if somebody approves.

PatelVatsalB21 avatar Nov 30 '20 12:11 PatelVatsalB21

@PatelVatsalB21 could please follow the issue template, mentioning the details to reproduce this. Also please try to reduce the size of gif. Thanks

danishjamal104 avatar Nov 30 '20 18:11 danishjamal104

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 😊

PatelVatsalB21 avatar Nov 30 '20 18:11 PatelVatsalB21

So @PatelVatsalB21 what are you trying to show in ss?

danishjamal104 avatar Nov 30 '20 19:11 danishjamal104

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.

PatelVatsalB21 avatar Dec 01 '20 05:12 PatelVatsalB21

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

danishjamal104 avatar Dec 01 '20 06:12 danishjamal104