DEV Community

Cover image for How To Develop A Progressive Web Application On An Android Device
Meir Gabay
Meir Gabay

Posted on • Originally published at meirg.co.il

How To Develop A Progressive Web Application On An Android Device

In the past few weeks, I've been wondering how the whole eco-system of a Progressive Web Application (PWA) works. Of course, I need to get my hands dirty and code something to understand it.

My main goal is to provision a local development environment, which hot-reloads (code changed) the application on a physical Android device.

The main challenge was figuring out a way to access the PWA, which runs on my local machine from my Android device (Samsung Galaxy S10). Why? Because PWA requires HTTPS access so using IP addresses is not an option.

Ladies and gentlemen, I present to you - unfor19/pwa-quasar-local

This project demonstrates how to develop a Progressive Web Application (PWA) locally on an Android device, using the Quasar Framework v2.

Final Results

IMPORTANT: Images may look weird on DEV.to; unsure why. Go to the GitHub repo unfor19/pwa-quasar-local if you experience funny widths and heights

I took screenshots with my Android device to document the whole user experience of installing a PWA for the first time.

Accessed PWA From Android Device

The Add to Home Screen popup appears!

Image description

Clicked Add To Home Screen

Image description

Clicked Install

Image description

Installation Completed

Image description

PWA Appears On The Device's Apps List

Image description

PWA Has A Cool Splashscreen

That is thanks to Quasar which does it, as always, automatically.

Image description

First Run After Installation

The application runs on the device as if it were a "normal application".

Image description

Final Words

It was a true joy to work with Quasar since it made the whole process of generating a PWA out-of-the-box without writing a single line of code. So head over to unfor19/pwa-quasar-local and do your PWA magic!

Top comments (2)

Collapse
 
jwp profile image
John Peters

Did you know that C# supports WASM and can compile to IOS, Android, Linux and Windows. This allows for 1 single code base.

Collapse
 
unfor19 profile image
Meir Gabay

Very interesting, I'll definitely give it a go