admin管理员组文章数量:1314587
I'm working on mobile application (angular ionic capacitor). Our test-server with api is reachable only when you are connected to VPN.
When I run application on real android device (vpn is ON) everything works fine. But when I try to send any request from application running in Android Studio Emulator (VPN on laptop is also ON) I get error: Unable to resolve host "our-host-name".
Is there any way to setup Emulator or smth else to let people test application in Emulator?
Thanks.
I noticed also that our-host-name is not reachable even if I send some simple GET from Chrome in Emulator. But if I put ip-address instead of hostname - it works.
BTW: requests are on http protocols for testing (not https).
I'm working on mobile application (angular ionic capacitor). Our test-server with api is reachable only when you are connected to VPN.
When I run application on real android device (vpn is ON) everything works fine. But when I try to send any request from application running in Android Studio Emulator (VPN on laptop is also ON) I get error: Unable to resolve host "our-host-name".
Is there any way to setup Emulator or smth else to let people test application in Emulator?
Thanks.
I noticed also that our-host-name is not reachable even if I send some simple GET from Chrome in Emulator. But if I put ip-address instead of hostname - it works.
BTW: requests are on http protocols for testing (not https).
Share Improve this question asked Jan 30 at 12:43 Halyna KyryliukHalyna Kyryliuk 11 bronze badge1 Answer
Reset to default 0there can be many ways to check the issue but generally it sounds like You need to set up that VPN host in the capacitor.config.ts file. https://capacitorjs/docs/guides/live-reload#using-with-framework-clis
本文标签: Error Unable to resolve host when run ionic application in Android studio emulatorStack Overflow
版权声明:本文标题:Error Unable to resolve host when run ionic application in Android studio emulator - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741965040a2407499.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论