You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After digging deeply I found that native iOS ReactNativeBlobUtilRequest function was not called at all. - (void) URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesWritten totalBytesExpectedToSend:(int64_t)totalBytesExpectedToWrite
I could fix it by calling config method with {IOSBackgroundTask: true}. If I called it with false value the issue appeared again.
ReactNativeBlobUtil.config({ IOSBackgroundTask: true })
.fetch({....rest of the code})
It needs to be marked in the uploading progress section because I spent almost a day to fix it. This is the only way to get uploading progress because Axios and XMLHttpRequest don't work for mobile.
The text was updated successfully, but these errors were encountered:
Hi everyone,
Platform: iOS
I faced an issue recently with uploading the progress bar on iOS simulator. The file was uploaded successfully but
uploadProgress
did not fire at all.Here is a code of request service:
After digging deeply I found that native iOS
ReactNativeBlobUtilRequest
function was not called at all.- (void) URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesWritten totalBytesExpectedToSend:(int64_t)totalBytesExpectedToWrite
I could fix it by calling
config
method with{IOSBackgroundTask: true}
. If I called it withfalse
value the issue appeared again.It needs to be marked in the uploading progress section because I spent almost a day to fix it. This is the only way to get uploading progress because Axios and XMLHttpRequest don't work for mobile.
The text was updated successfully, but these errors were encountered: