O'Reilly logo

Hybrid Mobile Development with Ionic by Gaurav Saini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Offline currency converter PWA

We have looked into what exactly PWA and service-workers are, now let's build a PWA application using Ionic. We will be implementing an offline currency converter, which according to the network state fetches the latest data from fixer.io or from the cache or storage data. The application will have a listing of currency conversion rates according to base currency.

Firstly, we will start a new Ionic 3 application using Ionic CLI and install the NPM package for @ionic/storage:

$ npm install --save @ionic/storage

We will be running it using Ionic serve, which will host it on the 8100 port. Now as discussed in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required