This is my PDFUtils.js, to handle PDF download/view in my app from a remote source. This code was working perfectly until some days ago.
Right now, this code is working perfectly as expected on iOS.
On Android, this still downloads the pdf, but with 2 unexpected behaviours:
Filename is wrong (now it taked the notification title ad the filename)
This throws me an error, because response.respInfo.status is undefined!
So I console-logged the response object, and I noticed that the android response object is changed!
ANDROID:
IOS:
I was looking for response.respInfo.status to see the statusCode of the network response, but this information is not available anymore on android only! Why??
"react": "16.6.3", "react-native": "0.57.8", "rn-fetch-blob": "^0.10.15",
This is my PDFUtils.js, to handle PDF download/view in my app from a remote source. This code was working perfectly until some days ago.
Right now, this code is working perfectly as expected on iOS. On Android, this still downloads the pdf, but with 2 unexpected behaviours:
response.respInfo.status
is undefined!So I console-logged the response object, and I noticed that the android response object is changed!
ANDROID:
IOS:
I was looking for response.respInfo.status to see the statusCode of the network response, but this information is not available anymore on android only! Why??
Here is the code:
Thanks in advance!