Error loading app: Expected URL scheme 'http' or 'https' but was 'exp'

Please provide the following:

  1. SDK Version: 42
  2. Platforms(Android/iOS/web/all): Android/iOS

I recently upgraded to SDK 42 and built development clients for both Android and iOS. I’ve installed both successfully.

When I type in the exp:// URL under “enter the URL of a local bundler manually” and try to connect, it gives me the following error on Android and iOS:
Android: Error loading app: Expected URL scheme ‘http’ or ‘https’ but was ‘exp’
iOS: Error loading app: unsupported URL

When I scan the QR code from my bundler however, it works.

Okay, so I missed the crucial step of including --dev-client when starting the bundler expo start --dev-client (as with all code things, figured this out literally 2 minutes after I posted this).

2 Likes

Thanks for following up yourself @richardwu. Do you think we could have better documented the need for the --dev-client flag? We’re always open to suggestions and insights from users.

I think it’s partially my fault for speeding through this part Getting Started - Expo Documentation and not realizing I needed to modify my yarn start command with the new flag. Maybe a flashy callout/warning in that section would help?

Or perhaps in the custom development client screen to point out that if the above error occurs, to check that --dev-client was passed as a flag to expo start.

Also I gave some incorrect info/red herring on the QR code working: it was actually opening up on my Expo Go app (which was still installed on my device).