How to Handle Offline Functionality in Mobile Apps?