Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Charles Proxy helps debug network traffic in Vega apps and inspect HTTPS connections that handle sensitive information. This proxy acts as a middleman between your app and server, intercepting network traffic and allowing you to:
  • Monitor all network traffic
  • Identify network issues
  • Modify requests and responses
  • Analyze performance

Prerequisites

Install the following requirements:
  1. Charles Proxy (version 4.6 or higher) For transport layer security (TLS) version 1.3 compatibility, download Charles 5.
  2. Vega SDK latest version
  3. A Vega app project

Supported protocols

Configure your app to use one or more of these protocols for the Charles Proxy to capture its traffic:
  • HTTP
  • HTTPS
  • XMLHttpRequest
  • Media Player requests
  • Websocket requests

Set up Charles Proxy

If you previously configured Charles Proxy, but want to add or modify your proxy-config.json file, go to Add or modify proxy-config.json file. If this is your first time setting up Charles Proxy, complete the following steps:
  1. Open Charles Proxy and grant macOS proxy privileges when prompted.
  2. Set HTTP Proxy Port to 8888. Screenshot that shows the Proxy Settings with the HTTP Proxy having port 8888 set. a. Go to Proxy > Proxy Settings. b. Enter 8888 in the HTTP Proxy Port field. c. Select OK.
  3. Configure Secure Sockets Layer (SSL) Proxying. Screenshot that shows the SSL Proxying Settings where you can add include and exclude locations. a. Go to Proxy > SSL Proxying Settings. b. Select the SSL Proxying tab. c. Select Add in the Include section. d. Leave the Host box empty in the Edit Location dialog. e. Enter 443 in the Port field. f. Select OK.
  4. Generate a root certificate. a. Go to Help > SSL Proxying > Save Charles Root Certificate. b. Enter proxy-cert.pem in the Save As field. c. Save the certificate in your preferred location. d. Select Save.

Add Charles Proxy to your Vega apps

  1. At the command prompt, navigate to your app: For example:
  2. Clean the project:
  3. Create an assets/raw folder in your project directory.
  4. Move the proxy-cert.pem file to the assets/raw folder.
  5. Create a proxy-config.json file in the assets/raw folder. Example proxy-config file:
The following table lists the required fields for the proxy-config.json file.

Debug your app

  1. Install dependencies:
  2. Run and build your app:
  3. Install the app on your Vega Virtual Device or Fire TV Stick.

Monitor Traffic

  1. Go to Proxy > Start Recording.
  2. Launch your app on your Vega Virtual Device or Fire TV Stick. Charles Proxy displays the network requests made by your app. You can view the details in the Structure or Sequence tab.
  3. Test Charles connection:

Set up port forwarding

Port forwarding directs the device to send requests meant for a specific port to your computer instead. Complete these steps only for Fire TV Stick (not needed for the Vega Virtual Device):
  1. At the command prompt, run:
    Example:
  2. Delete the following files before submitting your app for production:
    • proxy-config.json
    • certificate files (for example, assets/raw/proxy-cert.pem)
  3. Clean and rebuild your project: a. Clean
    b. Install
    c. Build

Add or modify proxy-config.json file

To update your configuration:
  1. Complete initial proxy setup Complete the steps in Set up Charles Proxy.
  2. Remove the existing app Uninstall your existing app.
  3. Deploy the updated app Install your new app.

Use Charles Proxy across multiple machines

Learn how to monitor Vega app network traffic across development and test machines. Use this approach to share a .vpkg configured with Charles proxy for team testing.

On the development machine

  1. Complete the steps in Set up Charles Proxy.
  2. Export the root certificate and private key: Screenshot that shows the Charles Proxy's certificate management interface. a. Go to Help > SSL Proxying > Export Charles Root Certificate and Private Key. b. In the Export Charles Root Certificate and Private Key dialog:
    • Set a strong password (securely share this information with your testers later)
    • Name the file (for example, proxy-root-cert-private-key.p12)
    • Choose a download location
  3. Extract the root certificate using one of the following options: Option 1 (Preferred): a. Go to Help > SSL Proxying > Save Charles Root Certificate. b. Name the file (for example, proxy-cert.pem). Option 2 (Using OpenSSL):
  4. Complete the steps in Add Charles Proxy to your Vega apps.
  5. Securely share the following information with your testers:
    • proxy-root-cert-private-key.p12 file
    • password

On the test machine

Testers should complete this section.
  1. Configure the test machine proxy Complete the steps in Set up Charles Proxy.
  2. Import the shared certificate. Screenshot that shows the Root Certificate tab of SSL Proxying Settings. a. Go to Proxy > SSL Proxying Settings > Root Certificate > Import P12. b. Select the shared proxy-root-cert-private-key.p12 file. c. Enter the password provided by your development team.
  3. Configure test machine port forwarding Complete the steps in Set up port forwarding.
  4. Monitor test machine traffic Complete the steps in Monitor traffic.

Best practices for SSL configuration

To ensure reliable operation with Charles Proxy:
  • Verify your proxy-config.json file has correct formatting and certificate paths.
  • Start Charles Proxy before launching your app.

Troubleshooting

If you encounter issues when using Charles Proxy with Vega development tools, see [Charles Proxy Troubleshooting](charles-proxy- issues.html) for common problems and solutions.
Last modified on July 22, 2026