Closed PanayotCankov closed 6 years ago
I'm happy to see that this will improve this plugin
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.
Any idea if these things are still being considered ?
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.
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.