Upload files on the background

Please provide the following:

  1. SDK Version: 35.0.0
  2. Platforms(Android/iOS/web/all): iOS

I have a component where the user can select a file using DocumentPicker and then hit an upload button to upload it to my api. I am using axios to perform the post request and it is working fine. The problem is that when the user hits the iPhone’s Home button or switches to another app, the post request is interrupted with a Network Error 503.

I saw that expo has released the BackgroundFetch api and I wonder if I could use it perform this kind of post request or if this feature is not yet supported by expo.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.