Skip to content

Background Downloading doesn't work on iOS #531

@Akash-Tapadia-DFT

Description

@Akash-Tapadia-DFT

Describe the bug
Download is interrupted when user switches to another app (makes my app in background). It reports connection closed Exception on the file server. But on Android it works well when the app is in background.

System info

  • affected HTTP plugin version: 3.3.1
  • affected platform(s) and version(s): iOS 18.1
  • affected device(s): All iphone devices
  • cordova version: 10.0.0
  • cordova platform version(s): 7.1.1

Are you using ionic-native-wrapper? Yes

Minimum viable code to reproduce
If applicable, add formatted sample coding to help explain your problem.

e.g.:

      this.httpNative.sendRequest(
        url,
        {
          method: 'download',
          responseType: 'blob',
          timeout: 60000,
          filePath: path
        },
      ).then(response => {
        resolve(response);
      }, (err) => {
        reject(err);
       }

Does this plugin support background file transfer on IOS ? and if it supports, what I have done wrong ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions