Closed daveware-nv closed 5 years ago
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign the CLA at https://www.nativescript.org/cla.
CLA has not been signed by users: @daveware-nv.
After signing the CLA, you can ask me to recheck this PR by posting @cla-bot check
as a comment to the PR.
Hey @daveware-nv, thanks a lot for your contribution! 🥇 The issue you are trying to fix here turned out to be buried deeper in the {N} iOS Runtime 5.3+ due to a bug introduced there. So, a revamp of the native properties read logic had to be implemented in https://github.com/NativeScript/nativescript-background-http/pull/222. With this, we can close this PR as it addresses the same bug in a different way.
PR Checklist
What is the current behavior?
On iOS the
response
is alwaysnull
andresponseCode
always-1
. So we can't tell if the upload was successful.What is the new behavior?
I've added a parameter when creating a session on iOS to cause it to use the default session instead of a background session.
When setting this new option to
true
, the response will be passed through as expected. With the caveat the the session will not operate in background mode.Further details of my changes and rationale can be found in the commit message.
Creates workaround for #214 .
BREAKING CHANGES: