Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
730 stars 333 forks source link

Lost connection when app is minimized in iOS #293

Open Sivakumar415 opened 2 years ago

Sivakumar415 commented 2 years ago

While minimizing the application the background progress its getting cancelled with the below error

Lost connection to background transfer service

Kindly advise .

AliRehman7141 commented 2 years ago

Same here!

sadia-onyxtec commented 2 years ago

Did anybody solve this?

AliRehman7141 commented 2 years ago

I'm using two packages, for android this package is stable, and for ios using "react-native-background-upload": "github:cristianoccazinsp/react-native-background-upload" package that has no android SKD. So, you should have to manage your packages.json

FeoSilva commented 2 years ago

@AliRehman7141 Could you explain better how you are using a package for each platform?

AliRehman7141 commented 2 years ago

@FeoSilva put "react-native-background-upload": "^6.5.0" line in your package json and do install node_modules after that you can build android apk for ios replace existing line with "react-native-background-upload": "github:cristianoccazinsp/react-native-background-upload" again do install node_modules and pods now this will work for ios

Screenshot 2021-12-21 at 11 19 37 PM