Identify an existing mobile application that relies on client-side storage. Desc
ID: 3695860 • Letter: I
Question
Identify an existing mobile application that relies on client-side storage. Describe what the application does and how the client-side storage contributes to the overall application. Examples may range from storage of information from a “to do” list, to gaming scores and user profiles. Discuss what types of potential issues may occur involving performance or sharing an application between desktop and mobile applications. An example would include social media apps that store information on your mobile device that you might be interested in accessing from a desktop.
Explanation / Answer
"Mobile to overtake fixed Internet access by 2014" was the huge headline summarising the bold prediction from 2008 by Mary Meeker, an analyst at Kleiner Perkins Caufield Byers who reviews technology trends annually in May.
The mobile statistics that the team at Smart Insights curate in the regular updates to this article include:
Well, we're now past the mobile Tipping Point as this report from comScore shows. So it's no longer a case of asking whether mobile marketing important, we know it is! It's now a question of using the statistics to understand .
The localStorage API comes from the Web Storage specification, and it's the simplest of the APIs. It's a straighforward key/value store for string values that persists the data in the browser. That spec also includes sessionStorage, a way to store data for just a session, but it's not pertinent to this discussion because it's not as persistent. Both APIs expose the same set of methods for setting and getting items, plus events for finding out when items are added and removed.
In this example, I store a favorite fish in localStorage, retrieve and display the value, and then remove the value and check that it's gone.
?
1
2
3
4
5
6
7
localStorage.setItem('favoriteFish', 'tuna');
document.getElementById(‘fish’).innerHTML = “My favorite fish is: “ + localStorage.getItem('favoriteFish');
localStorage.removeItem('favoriteFish');
if (!localStorage.getItem('favoriteFish')) {
document.getElementById(‘fish’).innerHTML = “I don’t have a favorite fish anymore :( ”;
}
.
Hightail Desktop
Access, manage and share your files and folders with drag'n'drop ease. Any changes are instantly updated so everyone always sees the latest version
1
2
3
4
5
6
7
localStorage.setItem('favoriteFish', 'tuna');
document.getElementById(‘fish’).innerHTML = “My favorite fish is: “ + localStorage.getItem('favoriteFish');
localStorage.removeItem('favoriteFish');
if (!localStorage.getItem('favoriteFish')) {
document.getElementById(‘fish’).innerHTML = “I don’t have a favorite fish anymore :( ”;
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.