Emily
Emily

Reputation: 161

How to allow HTTP traffic in app.json for IOS and Android before pushing the app to store?

Im trying to configure the app.json before publishing the app to store, but I cant find any info how to allow HTTP traffic for Android and Ios. Can someone help me please??

Upvotes: 1

Views: 2072

Answers (1)

Jignesh Mayani
Jignesh Mayani

Reputation: 7203

For IOS add below code in your info.plist :

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
</dict>

For Android add the below code in your application tag of the AndroidManifest.xml file

android:usesCleartextTraffic="true"

Upvotes: 1

Related Questions