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
Hello,
I just got into problems using Azure CDN with our RN app - Azure uses Brotli compression (content-encoding: br), which isn't supported on Android by default. I was able to solve the problem by custom OkHttpClientFactory (OkHttpClientProvider.setOkHttpClientFactory(factory)) and custom Brotli decompression network interceptor, but this solves just RN fetch() downloads and not RNFS.downloadFile(). I didn't find any easy solution how implement the Brotli support for RNFS as it doesn't use okhttp contrary to React Native so I'm not able to plug in the interceptor. Is there any reason for that? Would it make sense to rewrite the Downloader class to use okhttp to be in line with RN and submit a PR?
The text was updated successfully, but these errors were encountered:
I am also curious - using okhttp provided by react-native would transitively solve the SSL problems with the still-supported Android 4.x devices that fail on HTTP transactions #446
@itinance - are you interested in a downloader PR that would use built-in react-native okhttp vs the current low-level work? or is there something I'm not aware of that makes this unworkable?
Hello,
I just got into problems using Azure CDN with our RN app - Azure uses Brotli compression (
content-encoding: br
), which isn't supported on Android by default. I was able to solve the problem by custom OkHttpClientFactory (OkHttpClientProvider.setOkHttpClientFactory(factory)
) and custom Brotli decompression network interceptor, but this solves just RNfetch()
downloads and notRNFS.downloadFile()
. I didn't find any easy solution how implement the Brotli support for RNFS as it doesn't use okhttp contrary to React Native so I'm not able to plug in the interceptor. Is there any reason for that? Would it make sense to rewrite theDownloader
class to use okhttp to be in line with RN and submit a PR?The text was updated successfully, but these errors were encountered: