Monday, January 30, 2023
No menu items!
HomeiOS Developmentxcode - The best way to take a look at React Native...

xcode – The best way to take a look at React Native app on ios system?


I am testing my react native app on my actual ios system and might set up/construct the app efficiently which takes me to my login display screen. I then attempt to login and make the api request however nothing occurs.

My server is operating at http://127.0.0.1:8000/ and I do know ios solely accepts https calls, so I adopted this and up to date my information.plist to this:

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>127.0.0.1:8000</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
        </dict>
    </dict>
</dict>

however nothing occurs.

The whole lot works when i run in simulator, simply not on actual system.

Respect any assist!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments