Developer workflow for offline support
Brent Vatne
It would be nice to have a well documented and easy to use workflow for testing your app with no internet connection and with varying levels of poor connectivity. You can use network link conditioner (http://nshipster.com/network-link-conditioner/) for this right now, but not a good end-to-end story for how to use this with Expo client, in particular on device rather than simulator.
Lucas Michailian
Any news with this issue ?
Fred Rivett
+1. Offline capability for an app is critical. Having spent an hour investigating this, my current conclusion is that it's just not possible with Expo unless I publish my changes up to their servers each time, then download and test offline. That's crazy.
Joseph Che
Fred Rivett: you are right, for now its not possible unless you publish the JS to their service
Andri Óskarsson
If Expo could simulate offline mode, but still passing traffic to the packager, then we could:
- Test NetInfo state changes
- Test failing fetch calls (both GraphQL and REST)
It's mildly frustrating that I can't do development and test this at the same time.
The only thing I can think of is to move development to a Linux box and use firewall rules to selectively reject traffic.
Harshul Sharma
Hey can we make expo great for debugging as well as testing? Since we have a little control over platform can we use it for our benefit to some extent. There is also a product Reactotron that does that to some extent. I believe we can go beyond that. Like chrome provides a good evironment for web same could be done with expo. Should I create new request or we can modify this one?
ShMcK
An example of the simple connectivity options offered by Chrome.
Online, Offline, Fast, Poor, (Add)
Harshul Sharma
ShMcK: But I don't use chrome for debugging or testing since it makes the whole process so slow
ShMcK
Harshul Sharma: Its true. I'm also hoping for a built in connectivity management solution in Expo.
Ron Arts
Harshul Sharma: Please tell me what you use instead of Chrome?
Harshul Sharma
Ron Arts: Try reactotron its just awesome.. your app run in mobile only and still you can debug most parts of it, its even better with redux or mobx.