We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bbe72d commit 52aa5ecCopy full SHA for 52aa5ec
android/src/main/java/com/RNFetchBlob/RNFetchBlobReq.java
@@ -252,8 +252,11 @@ else if(this.options.fileCache)
252
continue;
253
}
254
255
- // netinfo is deprecated
256
- //if (netInfo.getType() == ConnectivityManager.TYPE_WIFI && netInfo.getState() == NetworkInfo.State.CONNECTED) {
+ // Don't use P2P Wi-Fi on recent samsung devices
+ if(caps.hasTransport(NetworkCapabilities.NET_CAPABILITY_WIFI_P2P)){
257
+ continue;
258
+ }
259
+
260
if(caps.hasTransport(NetworkCapabilities.TRANSPORT_WIFI)){
261
clientBuilder.proxy(Proxy.NO_PROXY);
262
clientBuilder.socketFactory(network.getSocketFactory());
0 commit comments