nextcloud/talk-android

Network Handling for Conversations: Add network check, error dialog, and refresh option

bhavesh100 opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
Yes, there is currently no implementation for checking internet connectivity in ConversationsListActivity. In all cases, it presents the same error message: "There was a problem loading your chats."

IMG_20240328_163009

Describe the solution you'd like

The ideal solution would involve a two-step approach:

  1. Network Check: This can be achieved using existing libraries or platform-specific APIs for network connectivity checks.
  2. Displaying Error Message: Based on the network check result, customize the error message displayed in the dialog.
  • No Internet: If the network check fails, display a clear message like "No internet connection."

Describe alternatives you've considered
(none)

Additional context
(none)