If you have access to the end user's device, it can be helpful to inspect network traffic when troubleshooting a problem with the Geocortex Mobile App Framework.
Fiddler cannot inspect network traffic that is local to thelocalhost
or 127.0.0.1
.
To inspect remote network traffic using Fiddler:
Step 1: Set up Fiddler on a Computer
On a computer that is on the same network as your
Start Fiddler.
In the Fiddler menu, click Tools, and then click Telerik Fiddler Options.
The Telerik Fiddler options window appears.
Click the Connections tab.
The Connections page appears.
Select the Allow remote computers to connect checkbox.
Note the Fiddler listens on port number, as you will need this port number later.
Click OK.
Click OK.
Restart Fiddler.
If prompted by the firewall, allow remote access for Fiddler. Otherwise, you may need to manually edit the firewall settings.
Step 2: Set up the Device
On the
Tap Wi-Fi.
Tap Modify network.
Select the Show advanced options checkbox.
Scroll down to Proxy settings and select Manual from the drop-down menu.
In the
To determine the name of a Windows computer, hold down the Windows key and press the Pause/Break key.
In the
In the Bypass proxy for field, type 127.0.0.1.
Tap Save.
Step 3: Inspect Traffic
On the computer, run Fiddler.
If you are prompted by the computer's firewall, allow remote access for Fiddler.
On the
Use the Geocortex Mobile App Framework.
Fiddler displays the remote network traffic.
To display more information about a particular network activity in Fiddler, click the activity and then click the Inspectors tab.
It is possible to inspect both remote and local web view traffic by using Chrome's developer tools. The web view is the mechanism by which the Geocortex Mobile App Framework displays the Geocortex Viewer for HTML5.
This method only detects network traffic from the web view of the Geocortex Mobile App Framework. Unlike Fiddler, Chrome does not detect any Geocortex Mobile App Framework traffic outside of the web view.
To inspect both remote and local web view traffic using Chrome:
Step 1: Set up the Device
On the Android device, open the Android Settings.
If you do not have Developer options enabled, you must enable them:
Tap About device.
Scroll down to Build number, and tap it 7 times.
Developer options are now enabled.
Tap the back button to return to Android Settings.
Tap Developer options.
Scroll down to the USB debugging checkbox and select it.
Connect the Android device to the computer.
The Android device prompts you to allow USB debugging.
If you want to avoid this prompt in future, select the "Always allow from this computer" checkbox.
Tap OK.
Step 2: Set up Chrome on a Computer
If the computer does not have Chrome installed, download and install Chrome.
Step 3: Inspect Traffic
On the computer, start Chrome.
Type chrome://inspect in the web address bar and press Enter.
The device should appear in the list of devices. If it does not, see Google's Get Started with Remote Debugging Android Devices documentation.
On the Android device, start the Geocortex Mobile App Framework.
On the computer, Chrome should display an entry for the Geocortex Mobile App Framework called WebView in Geocortex.App.
In Chrome, click Inspect.
Chrome opens the Developer Tools window.
Click the Network tab.
Use the Geocortex Mobile App Framework.
Chrome displays the web view traffic.