NativeScript / nativescript-background-http

Background Upload plugin for the NativeScript framework
Apache License 2.0
102 stars 50 forks source link

Kinvey #75

Closed PanayotCankov closed 6 years ago

PanayotCankov commented 7 years ago

We have to raise the priority of some issues to enable file upload integration with Kinvey:

In general this includes delivering headers both on success and error, result and to unify the events.

Cayan commented 7 years ago

I'm happy to see that this will improve this plugin

gprodanov commented 7 years ago

I'll try to list what confused and impeded me while working on the integration with Kinvey:

On Android:

On iOS:

It would be nice to unify the behavior of the plugin over the two platforms and to avoid any use of native code. And to be able to access everything a server response might contain.

darxmac commented 6 years ago

Any idea if these things are still being considered ?

lini commented 6 years ago

The complete event includes the native response object for both Android and iOS. Accessing the data in the response (e.g. headers) is not trivial, because you have to know how to work with the respective native objects NSHTTPURLResponse on iOS and ServerResponse on Android. However, there is no need to write native code - NativeScript translates the native calls and will allow you to get the headers, response body, etc.

About #26 - the problem is explained in the issue and will cannot fixed in the plugin code. About #59 - the issue is still open so anyone can submit a patch.