React Native release version built successfully but does not work like debug
maybe its because you are not using a secure api.
try adding this in AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" /> <!-- < add this line > -->
<application
...
android:usesCleartextTraffic="true" <!-- < add this line > -->
/>
...
</application>
In Debug Mode, API Request works. Release Mode, returns null
This is my step by step journey with this issue.
Factory Reset
- I ended up having to do a factory reset
- Also had to upgrade again to the latest Catalina/Xcode.
Started Project Fresh
- I saved the src file, package.json, the app icons, and other specifics
- Built it with a new project with
react-native init AwesomeNativeBase
Changed Deployment Target
- I searched all
IOS_DEPLOYMENT_TARGET = {version number here}
in the file program and changed it to 11.0. - Kicked it off with a
pod install
- I searched all
Update React and React-Native
- Its FUNDAMENTAL you have the latest version of React and React-Native.
- Make sure to check their websites
Its not the cleanest solution but its what worked for me.
Related Topics
How to Find Current Visible Viewcontroller in Ios
Hide Strange Unwanted Xcode Logs
How to Rotate a Uiimage 90 Degrees
Can You Build Dynamic Libraries For iOS and Load Them At Runtime
Objective-C and Swift Url Encoding
Uialertview Addsubview in Ios7
Autoresizing Masks Programmatically VS Interface Builder/Xib/Nib
Converting Storyboard from Iphone to Ipad
Passing Data With Unwind Segue
React Native App Works on Debug Mode, But Not Works Release Mode on Ios
How to Associate File Types With an Iphone Application
Array Extension to Remove Object by Value
Programmatically Retrieve Memory Usage on Iphone
Detect Backspace in Empty Uitextfield