Using Local Testing with App Live

A usage guide to test your apps that need access to localhost and staging environments.

Test apps that retrieve data from localhost servers

Once you’ve enabled Local Testing, access your app and interact with it, just as you would on a physical mobile device. There’s no additional setup required.

Note: Due to security restrictions in Safari (on iOS 10 and above), localhost URLs will automatically change to http://bs-local.com. This lets us load your app assets properly. Remember to ensure that your local server is configured to serve requests from bs-local.com.

Test apps that retrieve data from private or internal servers

You can securely test mobile apps that retrieve data from private or internal servers—on our remote mobile devices. To enable this feature, follow the steps below:

Start an App Live session. In the overhead toolbar, click on the Settings icon. In the drop-down, check Resolve all URLs through my network option option. This ensures that all the requests on our remote mobile devices are routed through your machine.

Settings for resolving URLs through your local network during App Live session

Establish the Local Testing connection with a --force-local flag. This ensures that all the requests on our remote mobile devices are routed through your machine.

BrowserStackLocal --key YOUR_ACCESS_KEY --force-local

Learn more about enabling Local Testing with the Local binary

Now, access your app and interact with it, just as you would on a physical mobile device.

Test apps that retrieve assets from multiple internal (or public) servers

You can test apps serving assets from multiple internal or public servers, with Local Testing. For example, mobile apps that load content from assets1.staging.example.com, certain public servers, and assets2.staging.example.com.

Once you’ve enabled Local Testing, the assets will render as expected. Just access your app and interact with it, like you would on a physical mobile device.

Next Steps

We're sorry to hear that. Please share your feedback so we can do better







Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better







Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked






Thank you for your valuable feedback!

Talk to an Expert
Talk to an Expert