ContriHUB / Just-Share

Android app that enables quick transfer of photos, videos, documents, and audio files using WiFiDirect and Bluetooth.
MIT License
0 stars 5 forks source link

Implement Background File Transfer Support for Uninterrupted Transfers When App is Minimized #8

Open SaiDheerajPeketi opened 5 days ago

SaiDheerajPeketi commented 5 days ago

🚀Feature Request

Description

The requested feature is to implement support for background file transfers, allowing files to be sent and received without interruptions, even when the app is minimized or running in the background. This would enhance the app’s usability by enabling seamless file transfers, regardless of the app’s foreground status.

Expected behavior

Current behavior

Currently, file transfers are paused or interrupted when the app is minimized or moved to the background. This forces users to keep the app open in the foreground for the entire duration of the file transfer, which is inconvenient for large files or slow networks.

Steps to reproduce

  1. Initiate a file transfer via Bluetooth, Wi-Fi Direct, or any other supported method.
  2. Minimize the app or switch to another app.
  3. Observe that the file transfer may be paused, interrupted, or fail to complete.

Possible Solution

  1. Service-based Background Transfer: Implement a background service (e.g., ForegroundService) that handles file transfers in the background. This service should manage the ongoing file transfers, independent of the app’s UI state.

  2. Notification Integration: Show persistent notifications while files are being transferred. Notifications should display the current progress and update in real-time. Once the transfer is complete, show a success or failure message.

  3. Handle Network or Connectivity Issues: Ensure the background service can handle changes in network connectivity or disconnections gracefully. Provide a retry mechanism if a transfer fails due to these issues, with user notification and the ability to resume transfers when network conditions improve.

Why is this feature important to you?

This feature is essential for users transferring large files or using slow networks. The ability to continue transfers in the background without requiring the app to remain open enhances usability and convenience. It allows users to multitask and reduces frustration caused by interrupted transfers due to app switching or accidental minimization.

Additional context

This feature will allow smoother, uninterrupted file transfers, improving user satisfaction and making the app more robust for everyday use.