Are you Implementing Offline Functionality
Tags: offline, functionality, mobile
Published: 2019-04-24 10:14:43

---
title: Are you Implementing Offline Functionality
published: true
description: Are you Implementing Offline Functionality
tags: #Offline #Functionality #Mobile
---

![offline-525700_1280.png](https://cdn.steemitimages.com/DQmQkYdZeJA8MkULn8TN8KLqvpinLPUynZemk5aeighQHg2/offline-525700_1280.png)

<div dir="ltr" class="reader-article-content"><p>Sounds absurd, right? In today's connected world, something to work offline?! Today - Potentially everything has a <a href="https://www.aliexpress.com/wholesale?catId=0&amp;initiative_id=SB_20190422013350&amp;SearchText=ESP8266" target="_blank" rel="nofollow noopener">Wi-Fi module</a> and could be controlled from some external, remote server or device programmatically - Power Adapters, Lights, Cameras, Phones, Computers, Refrigerators, Vacuum Cleaners and so on.</p> 
<p>But what if the Internet stops? You forgot to pay the internet provider, someone cuts the cable? I know, your mobile phone has a 3G/4G and could be used as a router. But will the basic widespread user figure that out? Does your IoT work locally - with only internal local network available?</p> 
<p>Is at least some of the functionality of your software available offline? It's OK to be not available all. In the IoT I have been involved <a href="http://www.eli-home.com/eli/page/" target="_blank" rel="nofollow noopener">ELI-HOME</a> - it primarily works within the local network In my application <a href="https://play.google.com/store/apps/details?id=com.tomata_.productscanner" target="_blank" rel="nofollow noopener">What you eat</a> I've implemented offline access to all but the products within this app. The products are theoretically endless. But everything else is limited for now and it does not take a lot of space. I'm planning to implement similar functionality to the web site behind it.</p> 
<p>Over the past four years I've implemented several Android applications for clients and contractors (besides the several personal) and all of them, at some point wanted the thing to work offline as much as it can. It is not nuclear physics. It just need to be planned in the beginning of the software development - to primarily work offline and after that - online. This will save you time and energy.</p> 
<p>For mobile platforms - Android, Windows Phone, iOS, etc - this is mostly implemented with key-value storage, SQLite databases or any third party library that does the data management. They all could be checked for Internet availability. On the Web - the modern browsers have partial or full support for all of the above and <a href="https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine" target="_blank" rel="nofollow noopener">online</a> variable in the browser, and presently - <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Using_web_workers" target="_blank" rel="nofollow noopener">Web Workers</a> that do some logic offline - like pre-caching, serving content even if you are offline, handling push notifications and so on.</p> 
<p>So except your client is not some other business (and you expect that he has good Internet), except the information is very very big and frequently updated, the thing is specific and showing old data is not an option - you should implement at least some functionality offline. <a href="https://www.google.com/search?q=mobile+vs+desktop+internet+usage+statistics&amp;oq=mobile+vs++statistics" target="_blank" rel="nofollow noopener">The increase of mobile browsing</a> will surely increase the cases when your thing is opened with no Internet.</p></div>