This sample React Native app demonstrates how to capture HTTPS traffic on both iOS and Android devices using Proxyman.
This project shows practical examples of:
- Making HTTPS requests from React Native
- Configuring iOS/Android to work with Proxyman
- Capturing and analyzing network traffic during development
- Proxyman installed on your Mac
- React Native development environment set up
- iOS Simulator or Android Emulator
- Open Android Studio
- Go to Tools → AVD Manager
- Click Create Virtual Device
- Select Phone category and choose Pixel 9
- Click Next
- Select a system image with Google APIs (recommended: latest stable version)
- Click Next
- Name your AVD (e.g., "Pixel_9_API_34")
- Click Finish
- Start the emulator by clicking the Play button
-
Install dependencies
npm install
-
Run the app on your preferred platform:
# For iOS npm run ios # For Android npm run android
- Open Proxyman
- Go to Certificate → Install Certificate on iOS -> Simulator
- Follow the setup wizard
- The app's HTTPS traffic will now be visible in Proxyman
Please refer Setting up Android Emulator section above to know how to create an Android Emulator with Google APIs.
Note: Google Play Store version is not supported yet.
- Open Proxyman
- Go to Certificate → Install Certificate on Android -> Emulator
- Follow the setup wizard
- Restart your Android Emulator
- The app's HTTPS traffic will now be visible in Proxyman
- Configure your device to use your Mac as HTTP proxy
- Install Proxyman's certificate on your device
- Trust the certificate in device settings
The app includes examples of:
- GET requests to public APIs
- POST requests with JSON data
- Requests with custom headers
- Error handling scenarios
This code accompanies the Proxyman blog post: "How to Capture HTTPS Traffic from React Native iOS and Android"