So I was initially making a call to http://ec2-example:443/ which used to work. Now I got the https domain and made the domain point to the same sever. I replaced the react-native fetch code to make a backend post request to https://example.com instead of http://ec2-example:443/. In iOS these calls randomly get a network request failed outcome. However it works perfectly in android. The randomness of the network request failure is what that is making this problem very confusing.Currently I have tried almost all possiblities in the plist file with regards to NSAppTransportSecurity including the following solution.
<key>NSAppTransportSecurity</key><dict><key>NSAllowsArbitraryLoads</key><true/><key>NSAllowsArbitraryLoadsInWebContent</key><true/><key>NSAllowsLocalNetworking</key><true/></dict>
Any help in this matter would be deeply appreciated.