Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to access a local service through "localhost" #5

Open
rigor789 opened this issue Nov 18, 2022 · 0 comments
Open

Document how to access a local service through "localhost" #5

rigor789 opened this issue Nov 18, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@rigor789
Copy link
Member

Accessing localhost depends on where the apps is running:

  • iOS Simulator -> can access localhost/127.0.0.1
  • Android emulator -> needs to use a special IP, often 10.2.2.0 (todo: fact-check and list common ips to try)
  • iOS Device -> needs to access an address accessible on the local network like 192.168.0.x or similar
  • Androud device -> same as iOS device.

Mention that cleartext traffic is blocked by default (silently), so http or ws requests will not work unless you specifically allow cleartext traffic:

Android:

<application
 <!-- ... -->
 android:usesCleartextTraffic="true"
 <!-- ... -->
</application>

ios?

@rigor789 rigor789 added the enhancement New feature or request label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant