I want to test my app when it is disconnected from network (Internet connection). How to simulate the scenario in which phone doesn't have an Internet connection?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Do the following steps:
- Go to Network tab of the emulator's Additional Tools.
- Check Enable Network Simulation to test your app with different network speeds and different signal strengths.
- In the Network Speed dropdown list, select the option: No network
- Click Refresh