Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 17166

Disable NSAppTransportSecurity in Expo React Native

$
0
0

I want to disable "NSAppTransportSecurity" in Expo React Native.After build I got "Network request failed" Error.

I wanted to run HTTP without SSL after iOS build.

This is my app.json file

{"expo": {"name": "VSOLV People","slug": "VSOLV-People","version": "1.0.7","orientation": "portrait","icon": "./app/assets/pictures/icon.png","userInterfaceStyle": "light","splash": {"image": "./app/assets/pictures/splash.png","resizeMode": "contain","backgroundColor": "#ffffff"    },"updates": {"fallbackToCacheTimeout": 0    },"assetBundlePatterns": ["**/*"    ],"ios": {"supportsTablet": true,"bundleIdentifier": "sample","buildNumber": "27","infoPlist": {"NSLocationAlwaysAndWhenInUseUsageDescription": "This app needs access to your location to check your work premises, such as your client's location, branch offices, or main office, for attendance tracking and verification purposes.","NSAppTransportSecurity": {"NSAllowsArbitraryLoadsForMedia": true,"NSAllowsArbitraryLoadsInWebContent": true        }      }    },"android": {"adaptiveIcon": {"foregroundImage": "./app/assets/pictures/adaptive-icon.png","backgroundColor": "#FFFFFF"      },"package": "sample","versionCode": 15    },"web": {"favicon": "./app/assets/pictures/favicon.png"    },"extra": {"eas": {"projectId": "cae93ac2-6b5c-494d-82db-aee387b2ff18"      }    },"plugins": [      ["expo-build-properties",        {"android": {"usesCleartextTraffic": true          }        }      ]    ]  }} 

I need solution to access HTTP without SSL after build and submit to App store.


Viewing all articles
Browse latest Browse all 17166

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>