mozilla-mobile / reference-browser

A full-featured browser reference implementation using Mozilla Android Components.
Mozilla Public License 2.0
575 stars 161 forks source link

Download Manager doesn't show notification status when a download is in progress #551

Closed jonalmeida closed 5 years ago

jonalmeida commented 5 years ago

Steps to reproduce

  1. Try to download the All Examples, in single file (38MB) documents from: https://techdocs.altium.com/display/ADOH/Download+Examples+and+Reference+Designs

Expected behavior

  1. A notification showing the file being downloaded in progress.
  2. A notification of the completed download.

Actual behavior

  1. No notification is seen; but eventually a file is downloaded.
  2. A notification of the completed download is correctly seen.

Device information

A snippet of the logs.

2019-02-03 12:45:30.060 8166-8179/? W/DownloadManager: Path appears to be invalid: /storage/emulated/0/Download/Examples.zip
2019-02-03 12:45:30.081 8608-8670/org.mozilla.reference.browser.debug D/OpenGLRenderer: endAllActiveAnimators on 0xc0373c80 (RippleDrawable) with handle 0xb7645700
2019-02-03 12:45:30.102 8450-8466/? I/Finsky: [23419] com.google.android.finsky.bo.an.run(6): Stats for Executor: Db-xternal_referrer_status.db com.google.android.finsky.bo.ao@ae7f656[Running, pool size = 1, active threads = 0, queued tasks = 0, completed tasks = 1]
2019-02-03 12:45:30.106 8608-8631/org.mozilla.reference.browser.debug D/GeckoViewModule: dispatch GeckoView:SetFocused, data={"focused":true}
2019-02-03 12:45:30.108 8166-9253/? D/DownloadManager: [1649] Starting
2019-02-03 12:45:30.116 8166-9253/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2019-02-03 12:45:30.117 8166-9253/? D/NetworkSecurityConfig: No Network Security Config specified, using platform default
2019-02-03 12:45:30.118 8166-9253/? W/DownloadManager: [1649] Stop requested with status HTTP_DATA_ERROR: Cleartext HTTP traffic to valhalla.altium.com not permitted
2019-02-03 12:45:30.119 8166-9253/? D/DownloadManager: [1649] Finished with status WAITING_TO_RETRY
Amejia481 commented 5 years ago

@jonalmeida I'm using the latest version of the reference browser and I'm unable to replicated this issue.

The behaviour that I'm seeing now is the following:

  1. A notification is being post when the download is in progress (the progress bar is collapsed by default).
  2. When the file is downloaded, the notification is deleted and a new notification gets posted.

You can take a look here

Note: Sometimes the file gets downloaded pretty fast, you can try with this one android-studio-ide that is almost a 1GB.

jonalmeida commented 5 years ago

Thanks for looking into this! I guess it's fine to close it then if this is no longer reproducible.