How to Add Proxy PAC Routing to Enterprise Mobile Apps

Last updated January 1, 2024 by Appdome


A proxy auto-config (PAC) file defines how web browsers and other user agents can automatically choose the appropriate proxy server (access method) for fetching a given URL. This Knowledge Base article provides step-by-step instructions for how to add proxy pac routing to enterprise mobile apps, instantly, without coding on Appdome.

How to Add Proxy PAC Routing to Enterprise Mobile Apps

The Appdome technology adds Proxy PAC support and relevant standards, frameworks and more to the app automatically, without any need for manual development. Using Appdome, mobile apps will support proxy controlled by a PAC file as if it was natively coded to the app.  Using Appdome, there are no development or coding prerequisites. For example, there is no Appdome SDK, libraries, or plug-ins to implement. Likewise, there are no required infrastructure changes and no dependency on networking API inside the app.

Appdome allows you to configure your app to proxy with dynamic and static configuration. Static configuration is constant per app and will require fusing the app with the new configuration and deploying it again to adapt to any changes in proxy network topology. A dynamic configuration can be achieved by setting a WPAD URL, which is a path to a downloadable PAC file. The PAC file contains the proxy translation logic between the protected host and the proxy that should route connections to that host. When multiple proxy setup methods are used the following priority will be used to determine the host-proxy translation logic. Appdome will first try and download the PAC file from the downloadable URL if omitted or downloading the file fails then static configurations will be used. Within static configuration, the Dedicated proxy URL will take priority over the PAC file.

Adding support for Proxy PAC inside mobile apps does not require installing any VPN app or special configuration and doesn’t impact any other app installed on the device. Furthermore, supporting proxy PAC works with EMM tunneling and MicroVPN. These combinations will cover cases in which accessing a protected host requires a proxy, but the proxy itself is only accessible within the internal network.

Prerequisites for using Appdome to add Proxy PAC inside Mobile Apps

In order to use Appdome’s no code implementation of Proxy PAC on Appdome, you’ll need:

A PAC file is a text file that defines at least one JavaScript function, FindProxyForURL(url, host), with two arguments: url is the URL of the object and host is the host-name derived from that URL.


function FindProxyForURL(url, host) {
	// URLs from domains below don't need a proxy
	if (shExpMatch(host, "*"))
		return "DIRECT";

	// URLs within this network are accessed through
	// port 8080 on
	if (isInNet(host, "", ""))
		return "PROXY";

	// All other requests go through port 8080 of
	return "PROXY";

Notice that the returned proxy can be:

  • DIRECT – no proxy is in effect
  • PROXY <IP:port> – proxy to the given IP and port
  • PROXY <host name:port> – proxy to the address resolved from the given host and port

If multiple options are given in a return statement, Appdome will only use the first.

For more information and examples regarding proxy.pac read here.

The Easy Steps to Add Proxy PAC Routing to Enterprise Mobile Apps

Follow these step-by-step instructions to customize Any Mobile App:

Upload a Mobile App to Your Account

Please follow these steps to add a mobile app to your Appdome account.
If you don’t have an Appdome account, click here to create an account.

Select the Build TabNote: a blue underline will appear showing the step is active
Beneath the Build Tab, you will find several service options. Select AccessNote: a blue highlight will appear showing the category is active.

  1. Open Appdome Access Suite
  2. Open the sub-category Private Server Certificate and Authorities 
  3. Click on the toggle to enable Proxy Settings
  4. Enter a WPAD URL to a downloadable PAC file
  5. Enter The dedicated Proxy URL
  6. Upload a PAC file.
  7. press Build My App.

Upload PAC fiile

The technology behind Add Context to My App has two major elements – (1) a microservice architecture filled with 1000s of code sets needed for mobile integrations, and (2) an adaptive code generation engine that can recognize the development environment, frameworks and methods in each app and match the app to the relevant code-sets needed to customize your mobile app in seconds. For example, the technology supporting PAC files downloaded from a remote server, work that ordinarily a developer would need to do.

Congratulations! You now have a mobile app fully integrated with Proxy PAC.

Success Msg

After Adding Proxy PAC inside Mobile Apps on Appdome

Sign the Proxy PAC enabled Appdome-Built App

Deploying an Appdome-Built app requires signing this app first. Signing iOS apps and Signing Android apps are easy using Appdome. Alternatively, you can use Private Signing, download your unsigned app and sign locally by using your own signing methods.

Deploy the Appdome-Built App to a Mobile Device

Once you have signed your Appdome-Built app, you can download to deploy it by using your distribution method of choice. For more information on deploying your Appdome-Built apps, please read this knowledge base.

That’s it – Enjoy Appdome Proxy PAC in your app!

Related Articles

Related Articles

How Do I Learn More?

To zoom out on this topic, visit  App Branding on Appdome on our website. 

If you have any questions, please send them our way at or via the chat window on the Appdome platform.

Thank you!

Thanks for visiting Appdome! Our mission is to secure every app on the planet by making mobile app security easy. We hope we’re living up to the mission with your project. If you don’t already have an account, you can sign up for free.


Want a Demo?

Mobile Enterprise Access and MicroVPN

TomWe're here to help
We'll get back to you in 24 hours to schedule your demo.