enable_network restores the saved
settings. Repeated calls keep the original settings.
On Android, this disables Wi-Fi and mobile data without changing proxy settings.
It supports local and Momentic-hosted Android emulators.
On Momentic-hosted iOS simulators, this sets an unreachable system proxy. It
affects new HTTP and HTTPS connections that follow the system proxy. Existing
connections, localhost requests, and traffic that bypasses the proxy can
continue. It does not guarantee that an active voice call disconnects. Verify
that the app operation you are testing fails before treating it as offline.
Device
disable_network
Interrupt device networking and save its current settings for restoration.
Interrupts networking until
Momentic also attempts to restore the saved settings when releasing the device.
These steps do not restart your app. Some iOS apps need a restart before their
existing connections use the changed proxy.