Hello everybody,
I’m trying to debug and test the behaviour of my app, inside the Expo app, when the user is offline (I’m using redux-logger).
In order to do this I’m trying to maintain the WiFi connection and block remote connections but it seems it’s not working: NetInfo always tells I’m online.
I’m on a Windows PC and an Android phone, here are my current steps:
- I start the packager with
exp start --offline
- I use a firewall app (NoRoot Firewall) to block everything other than connections to my local ip address and to amazonaws (in order for Expo app to work).
I suppose NetInfo checks the connection status at a lower level and therefore my approach doesn’t work.
What can I try instead? I need a connection with the console while offline.
Found a working solution: I went back to XDE and used Host: localhost. Now I can enable/disable connection on my phone without problems. More details here.