Development with the iOS Launch Viewer

Local dev servers & SSL

Use HTTPS with a certificate your iPhone trusts. For local testing, you can use a tunnel or trust your development certificate on the phone.

There are a range of options to connect your local code to an iOS app with a valid certificate:

Tunnelling requests to your dev server

Tunnelling services like Cloudflare Tunnel or ngrok expose your local dev server as if it was a public server with a valid SSL cert. By using one of these services with TLS/SSL enabled you can connect Variant Launch to the domain the service gives you

Check out our tutorial on how to get started using Tunnels. Once you have installed cloudflared, connecting your dev server to a full SSL url is as simple as running:

cloudflared tunnel --url http://localhost:YOUR_PORT

Automated Deployment

By using an automated deployment service like Cloudflare Pages you can have a testing url automatically update with each push to your repo. We recommend Cloudflare due to the ease of setup and generous free plan.

See their Getting Started documentation for details on linking your repo. Netlify and Vercel also provide similar services.


Previous
iOS browser considerations