Open gregersen79 opened 4 years ago
I'm having the same issue, have you found any workaround for now?
Has anyone figured out a workaround?
Has anyone figured out a workaround?
I commented out the offending code in the readProp function and that has been working so far. Though I believe you will lose the upload progress tracking.
Commenting line 254 of index.ios.ts / line 220 of index.ios.js prevents the crash:
invocation.getReturnValue(ret);
I'm still receiving the progress
and complete
events with the line removed on iOS 14. I haven't tested elsewhere yet.
Thanks @3rror404, that worked for me. For anyone else fairly new to manually updating plugins and wants to fix this while waiting for the official update, here's what I did. Let me know if there's a better process.
npm setup
to initialize the packages.npm start
and selected @nativescript.background-http.build
to build the package.ns plugin add ../ns-plugins/plugins/dist/packages/background-http
to add the modified plugin to my app (of course you'll need to replace the path with the path on your local machine).A major problem with this change is that you lose the ability to monitor progress with task.upload
and task.totalUpload
.
Same issue. Thanks @3rror404, your workaround worked for me as well.
+1
I'm also having this issue.
For me in Android and iOS, using NS7 and 5.0.1 version and not working at all
Only testet on iOS @nativescript/ios": "7.0.0".
Please, provide the following version numbers that your issue occurs with:
When I upload a file, I get the error below. The file gets uploaded correct though.