NativeScript / nativescript-background-http

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

Tbozhikov/fix response code ios #222

Closed tbozhikov closed 5 years ago

tbozhikov commented 5 years ago

What is the current behavior?

After iOS runtime 5.3 was released some of the properties of the event arguments returned by the plugin are undefined/unset/incorrect values. Such is the responseCode property as described in https://github.com/NativeScript/nativescript-background-http/issues/214

The iOS Runtime bug related to this is: https://github.com/NativeScript/ios-runtime/issues/1149

What is the new behavior?

With this PR, some of the native iOS properties that were unable to be read after iOS Runtime v5.3 are now read in different ways: