When it comes to saving data in an Ionic 2 mobile application, there are many ways to get the job done. You can use the classic HTML5 local storage, but run the risk of compatibility problems between all available devices. You can use SQLite, which is part of Ionic Native, but that will only work for Android and iOS and has more of a mobile API. You can also use SqlStorage, but that is a very proprietary solution. This brings us to localForage from Mozilla.
Mozilla advertises localForage as a wrapper to IndexedDB, WebSQL and localStorage which will offer maximum compatibility across the grid.
We’re going to see how to include localForage in our application which is a valid option for Ionic 2.Read More
As a web and mobile application developer, you may come to a point where you need to worry about data and how to synchronize it between devices in platforms. PouchDB is one of a few good solutions that makes this task significantly easier. In this episode of The Polyglot Developer Podcast, guest speaker Nolan Lawson and I discuss PouchDB and how it is being used in a lot of modern applications, both web and mobile.
Nolan Lawson is a Program Manager at Microsoft, but also one of the core contributors to the PouchDB open source project. In Episode #6: PouchDB and its Usefulness in Browser Based Development, we’re going to cover a lot of ground without actually showing how to use the database in your application. After all, this is an audio only podcast. You will however, be educated on a lot of the technical concepts and popular use cases behind the tool.Read More
Ionic 2 is becoming all the rage right now because of it using Angular. With the introduction of Angular, comes many differences in the language and framework itself. One of the most critical parts of any mobile application is its ability to save data and have it persisted when the application is launched at a later date. I demonstrated in Ionic Framework 1 how to use SQLite as a storage solution, so I figured it would be a good idea to demonstrate the same using Ionic Framework 2.
Let’s see why it might be a good idea to use SQLite in an Ionic 2 application rather than HTML5 local storage.Read More
So you’ve been fiddling with React Native for a bit now like I have. If you’re like me then you’re at a point where you’re ready to look at saving and loading data in your mobile application.
Now I’ve previously demonstrated saving data with Ionic Framework, so the goals I’m about to share are going to be very similar. We’re going to focus on React Native’s
AsyncStorage class to accomplish what we need.
When developing web applications a common way to store data is to use local storage. This NoSQL approach is great, but what if you’re coming from an RDBMS? With HTML5, you have access to the WebSQL API which allows us to use SQL queries for handling client side storage.
This guide will show you how to use the WebSQL API, which is based around SQLite, in your web application. This information can even be extended for use with mobile hybrid applications.Read More