I'm running my app with react-native run-ios
but when it's built it won't load any data because the network connection failed.
However, browsing the Internet through the simulator does work. So there is a connection, it's just not working with my apps.
I'm building on iPhone 6 simulator.
I have tried
Simulator > reset
Settings > Developer > Allow HTTP Services
but no luck so far.
This can happen if you are using HTTP connections. App Transport Security (iOS 9.0 and above) forces app to use HTTPS. The best you can do is start using HTTPS. Or disable it at least for now, because in January 1, 2017 Apple will reject your app, if you won't give them good explanation of why you are using non secure connections.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.