Document how to access a local service through "localhost"
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 42/100
- Issue type
- Documentation
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- android, ios
- Domain
- documentation, mobile-dev
Research direction
Start by locating the NativeScript documentation page covering local services or networking. Verify localhost behavior and common emulator/device addresses for iOS and Android, then document the cleartext-traffic requirements, including the missing iOS guidance. Done means the page covers each listed environment with accurate addresses and setup notes.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- JavaScript
- Stars
- 17
- Forks
- 31
- Avg merge
- 8h 51m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from NativeScript/docs
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
NativeScript/docs#177 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
NativeScript/docs#189 ·
-
Label: maxLines Open
Difficulty 1/5 Under an hour Newbie friendliness 48/100
NativeScript/docs#182 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
NativeScript/docs#178 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
NativeScript/docs#159 ·
All issues in NativeScript/docs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/rails8-app-on-gcp#145 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
dotenvx/dotenv-vscode#139 ·
-
test-change-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1455 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100