NativeScript / NativeScript/nativescript-cli
Add --proxy option to enable the network proxy for the http requests in the android emulator.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 204
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 8
Description
Is your feature request related to a problem? Please describe.
Currently, I couldn't set a network proxy for the http requests in the android emulator. I noticed that avd has this option but tns doesnt. And I did all the searching in the documents and stackoverflow and still didnt find one. Currently I am on a project that have to request facebook's api, but I am in China, I cant access those api with proxy in the android emulator, so I am stuck on it now.
Describe the solution you'd like
Add --proxy option to enable the network proxy for the http requests in the android emulator like avd -http-proxy did.
Describe alternatives you've considered
I think --proxy is the most straightforward solution, or u could add some additional file in the project to have this function.
Additional context
I think its a key function, for users in mainland China, without proxy or vpn, they cant access public api from Twitter or Facebook, so please add this function ASAP, thanks.
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.
Research direction
Start by tracing the Android emulator launch path and the CLI's existing option parsing, using the requested --proxy behavior and avd -http-proxy as the reference. Done means the option is accepted by the CLI, passed to the emulator's HTTP proxy configuration, and verified with an emulator request through a proxy.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- cli, mobile, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100