Expo Go QR Codes

How QR codes work for mobile app testing

Technical Documentation
Back to Document Library

📱 What is the QR Code?

The QR code displayed in VS-REP connects your phone's Expo Go app to your development server. When scanned, it tells Expo Go where to download and run your app's JavaScript code.

Key Concept

The QR code is a link to your live development server, not a snapshot of your app. This means anyone who scans it always gets the latest version of your code.

How It Works

1

Scan QR Code

User opens Expo Go and scans

2

Connect to Server

Phone connects to VS-REP URL

3

Download Bundle

Latest JavaScript is fetched

4

Run App

App launches on device

🔄 When Does the QR Code Change?

The QR code URL is tied to your VS-REP project and development server session. Here's when it changes and when it stays the same:

The QR Code Changes When:

The QR Code Does NOT Change When:

Important

There is no preset expiration timer on QR codes. The URL only becomes invalid if the development server stops running.

👥 Sharing QR Codes with Others

Do Old QR Codes Still Work?

Yes! As long as your VS-REP project is running, old QR codes continue to work. VS-REP provides stable URLs, so the QR code you shared last week should still function today.

Scenario Does Old QR Work? What Happens
VS-REP is running Yes User sees your latest app version
VS-REP is sleeping/stopped No Connection fails - user sees error
You restarted VS-REP Usually Yes Same URL, should reconnect
You made code changes Yes User gets the new changes automatically

Do They Need a New QR Code to See Updates?

No New QR Code Needed!

The QR code doesn't point to a specific "build" or version. It points to your live development server. Every time someone opens the app or refreshes, they pull the newest JavaScript bundle automatically.

How Testers Get Updates

Frequently Asked Questions

Can I share the QR code on social media or in emails?

Yes! The QR code is safe to share publicly. However, keep in mind that your VS-REP must be running for others to access the app. Consider keeping your project always-on if you're sharing with many testers.

Why can't my tester connect after I shared the QR code?

Most likely your VS-REP is not running. Check if the development server is active. If it's sleeping, start it up and the same QR code should work again.

Do I need to regenerate QR codes after every update?

No! This is the beauty of Expo Go development. The QR code is a permanent link to your live server. All updates are delivered automatically - no new QR codes required.

What happens if I change the project name?

Changing the VS-REP project name may change the URL, which would require a new QR code. However, simple code changes, even major feature updates, do not affect the QR code.

Is there a limit to how many people can use one QR code?

There's no hard limit, but performance may degrade with many simultaneous connections to a development server. For large-scale testing, consider using EAS Build to create standalone test builds.

Can I print the QR code for in-person demos?

Absolutely! Printed QR codes work the same as digital ones. Just ensure your VS-REP is running before the demo starts.

📋 Quick Reference

Does QR code expire?
No time-based expiration
Need new QR for updates?
No, same QR loads latest
Old QR codes work?
Yes, if server is running
How to see changes?
Refresh app in Expo Go

The Bottom Line

The QR code is essentially a "permanent link" to your running app. As long as the server is up, anyone with that QR code can always access the latest version. Think of it like a website URL - the content updates, but the address stays the same.

🔧 Troubleshooting

QR Code Not Working?

  1. Check if VS-REP is running - Look for the green "running" indicator
  2. Verify the dev server is active - You should see the Expo bundler output
  3. Try refreshing the QR code - Sometimes a new scan is needed after a restart
  4. Check your internet connection - Both devices need internet access
  5. Update Expo Go app - Ensure you have the latest version installed

Common Mistake

If you've been away for a while, your VS-REP may have gone to sleep. Simply click "Run" to wake it up, wait for the server to start, and the existing QR code should work again.

🔗 Related Resources