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
735 stars 335 forks source link

Share Extension Support #146

Closed narehart closed 4 years ago

narehart commented 5 years ago

When trying to use this package in a share extension I'm encountering this error:

{ 
  id: '0',
  responseBody: null,
  error: 'The operation couldn’t be completed. (NSURLErrorDomain error -995.)'
}

I don't know enough about Objective-C to really diagnose this issue but I think it might have something to do with the utility method used to copy the PHAsset to the temp directory. Let me know if you need anymore info.

Palid commented 4 years ago

@narehart did you correctly add all the required informations for share extension too? You need to add the share extension to keychain sharing group and to the app group with the application first. Then it needs to be passed down the tree to the react-native-background-upload, which it doesn't support it so far. I'll be doing a pull request for that.

github-actions[bot] commented 4 years ago

:tada: This issue has been resolved in version 5.7.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: