Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Testing Debugging in Offline Mode via Network

I'm developing a hybrid cordova app that should work offline as well. It just caches the data fetched from the network and re-uses the cached version if offline.

Since it's a cordova app, the dev files are on my machine and the url embedded in the app is pointed to my machine, so turning on airplane mode will stop the app to even pull the source code files to start with.

I'm trying to find out what's the approach to develop and test the offline behavior as you code.

like image 251
Developer Avatar asked Dec 06 '25 07:12

Developer


1 Answers

Install Additional Tools for XCode 8.2 . This is a network link conditioner. You can simulate many number of network conditions for your device with this.

More about Network Link Conditioner

List of all additional tools is here which includes Additional tool for all versions of xcode.

like image 147
ahmed Avatar answered Dec 07 '25 20:12

ahmed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!