Open Bug 1833297 Opened 2 years ago Updated 1 year ago

Download notification dissappear when closing Firefox in recents tabs

Categories

(Firefox for Android :: Downloads, defect, P3)

Firefox 115
All
Android
defect

Tracking

()

Tracking Status
firefox126 --- affected
firefox127 --- affected
firefox128 --- affected

People

(Reporter: luisrleccar, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [qa-triaged])

Attachments

(1 file)

Attached video VID_20230515_214500.mp4

User Agent: Mozilla/5.0 (Linux; Android 13; M1908C3JGG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Mobile Safari/537.36

Steps to reproduce:

Download anything and in the download process close the application of recent applications.

Device: Xiaomi Redmi Note 8 2021 (biloba)
Android Version: 13 (MIUI 14)

Actual results:

The download notification disappears, not sure if the download continues in the background.

Expected results:

The download notification must remain visible as in other browsers

The severity field is not set for this bug.
:mavduevskiy, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(mavduevskiy)

We should check if this is a Xiaomi-specific issue. If so, probably missing some background permissions that the user has not granted.

Severity: -- → S3
Priority: -- → P3

Reducing it is severity as downloading something and killing the app looks like an edge case that isn't affecting a lot of users.

FYI if we want to revisit it someday:
The bug is reproducible on all android versions. We are using DownloadManager for handling downloads in Fenix, and its implementation is causing the issue. When we enqueue a request to download something, it creates a notification for our app and manages its state. But on the OS level the notification is bound to the app process, not the manager's. So when app gets killed, the OS clears notification as well. At that point DownloadManager continues the downloading process, but doesn't have a notification to post updates to.

The way to fix that would be to implement our own ForegroundService that would handle the download process and notification state. Killing the app won't affect its lifecycle.

Severity: S3 → S4
Flags: needinfo?(mavduevskiy)

Reproducible on all latest builds of Firefox for Android: 126.0, Beta 127.0b6, and Nightly 128.0a1 from 5/27.
Tested with Google Pixel 6 (Android 14).

Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [qa-triaged]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: