IPhone Connectivity Testing: How do I force it to lose connection?

后端 未结 7 1195
旧时难觅i
旧时难觅i 2021-02-07 11:52

Apple wants me to give the user a friendly apology if I can\'t find an internet connection. Using the Reachability Demo, this was easy enough. I want to take it a step further a

7条回答
  •  花落未央
    2021-02-07 12:32

    Use Charles Web Proxy You can inspect all HTTP/S requests your app sends and responses it receives, throttle connection to simulate any network speed. Create custom throttle profile called "Disconnected" with Bandwidth = 0, to simulate network disconnections.

提交回复
热议问题