To reproduce issues that only occur when offline, you have two options.
- You may be able to use request blocking to the URLs for your app in developer tools of the Replay Browser. However, if the issue is related to offline/online events, this will likely not trigger those in your application.
- The second option is to launch Replay using the command line while offline.
Launch with the
RECORD_ALL_CONTENT
environment variable set, using the location of Replay on your machine and the URL to record. This will record to the~/.replay
directory on your machine. Once online, you can use the Replay CLI to upload the recording. Example launch command:RECORD_ALL_CONTENT=1 /Applications/Replay.app/Contents/MacOS/replay https://replay.io