|Profiling an application is a technical process. This is best completed by a developer or other technical resource.|
|If you are attempting to find Channel IDs and have an Airship account level that includes technical support contact, please contact Airship Support for a token that will allow easier access to the Channel ID with Airship SDK 6.1 or later.|
|Because Charles Proxy exposes encrypted traffic to a 3rd party (in this case your computer), there are security concerns inherent in its use. We recommend using only Test Devices with Charles Proxy, and removing the Charles Proxy SSL Certificate after using Charles Proxy. Instructions for certificate removal are included at the bottom of this article.|
About Charles Proxy:
Charles Proxy is a web debugging tool that allows you to pass HTTP/HTTPS traffic through your computer and view it. It's a great resource for figuring out what is happening with an Airship implementation.
Setting up Charles Proxy for Airship:
- Download and Install Charles Proxy.
- Follow the Charles Proxy setup instructions for your platform.
- Once installed, open the Charles Proxy application on your computer.
- In Charles Proxy, go to the menu bar and choose Proxy > SSL Proxy Settings. Click the SSL Proxying tab.
- Click Add and enter device-api.urbanairship.com on port 443.
- Do the same with combine.urbanairship.com on port 443.
- Optionally, you can add *.urbanairship.com on port 443.
- Click OK.
When connecting your iOS or Android devices to Charles Proxy, you may be presented with a popup asking for access.
Device traffic must be routed through your computer which is running Charles Proxy so that it can been read. This requires some configuration on your test device. This documentation provided by Charle Proxy's developers details the changes that need to be made. Please see the iOS and Android device sections:
Profiling Application Behavior
- At the top of the Charles main window, select Sequence.
- In the Filter box, enter urban to limit results to Airship traffic.
- Open the mobile application on your device that you want to profile.
- Information should appear in the window. Congratulations!
Clicking an item under Sequence then selecting the Overview, Request, or Response tabs in the lower panel will display information about the traffic between the application and Airship.
If you need to find a device identifier, see How to find a Device Identifier using Charles Proxy.
Information available here includes, but is not limited to
- Device Tokens
- Channel ID
- Rich Message User ID
- Rich Message Inbox contents
- App Key
- Location Details
Saving a Session file to send to Airship Support
A full session file is information-dense, and greatly preferred to screenshots of particular items.
To save the full session go to:
- File > Save
- Format: Charles Session File
- Save to disk
- Attach to email or support ticket form
Removing the Charles Certificate from your device
Charles Proxy is a useful tool because it allows you to view HTTPS encrypted traffic that passes in and out of your device by installing a CA Certificate.
However, this certificate can allow others to view encrypted traffic from your device.
|For security reasons, we highly recommend that you remove the CA Certificate from your device after you are done using Charles Proxy. It is also a Best Practice to use Charles Proxy only with dedicated test devices.|
It is also a Best Practice to use Charles Proxy only with dedicated test devices.
To Remove on iOS:
- Charles Proxy SSL Proxying
- Tap Delete Profile
To Remove on Android:
- Trusted Credentials
- XK72 Ltd (Charles Proxy SSL Proxying)
- Tap Remove