Tuesday, May 14, 2024
HomeiOS Developmentios - API not engaged on react-native with out SSL

ios – API not engaged on react-native with out SSL


I’ve been searching for the answer of an analogous query however I could not discover any. In order that’s why I’m asking it right here.

So I’ve deployed my api's on an AWS occasion and each time I attempt to entry the api’s from the browser they work correctly. i.e if I do http://25.234.23.53:3030 I get the success message, however for some cause I’m not in a position to make use of the AWS occasion IP and port to name the API’s from my react native Ios simulator.

Each time I’m calling the API from my react-native app, I am getting this:

Network Error

and referring to a different related query requested on stack overflow, I’ve additionally tried utilizing this method in my app’s information.plist:

<key>NSAppTransportSecurity</key>
    <dict>
        <key>NSExceptionDomains</key>
    <dict>
        <key>NSAllowsArbitraryLoads</key>
        <true/>
        <key>localhost</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
        </dict>
    </dict>
</dict>

“react-native model”: “0.68.2”,

Please information me how can I permit my app to make use of http calls from my AWS occasion?



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments