hhaccessibility / hhaccessibility.github.io

http://hhaccessibility.github.io/main/
7 stars 41 forks source link

How costly is it to make AccessLocator work as a progressive web application? #168

Open joshi1983 opened 7 years ago

joshi1983 commented 7 years ago

We don't want to invest the effort to make a native Android application for AccessLocator any time soon because they are costly to develop and maintain and they only serve a fraction of our potential users. A progressive web application could serve the same users but might be much less costly to develop and maintain so a progressive web application might be worth us trying in coming months. How easy is it to make AccessLocator work as a progressive web application? Research enough to confidently answer that question with a brief description of the work required.

A couple pages to get us started include: https://developers.google.com/web/progressive-web-apps/ https://developers.google.com/web/fundamentals/getting-started/codelabs/your-first-pwapp/

"Instant Loading: Building offline-first Progressive Web Apps - Google I/O 2016": https://www.youtube.com/watch?v=cmGr0RszHc8

There are some related issues.

joshi1983 commented 7 years ago

I watched the complete video at https://www.youtube.com/watch?v=cmGr0RszHc8 and it seems like a lot of work still.

The first couple steps would be:

  1. Add a JavaScript file responsible for managing the application's cache with probably AppCache and a service worker to intercept HTTP requests for the home page and eventually others
  2. Take advantage of the cache to store images that we want regardless of database state.

The above steps are probably doable within 12 hours of focused work. Those steps would prove that we could expand on them to make an application that partly works without Internet service or with poor internet service. After those steps, we would still require Internet service for any practical use such as finding locations, looking at ratings, rating a location, signing in...

Other steps involving rewriting logic for building location reports, a local-only search... won't be worth doing for many months to come because it would be like almost rewriting the PHP-portion of the application in JavaScript. It would be easier than a completely native Android application but not worth doing when there are big gaps in our main web application.

I'm closing this issue as the main question I was asking was answered by myself. @Blandine-AA if you have questions about this work, let me know.

joshi1983 commented 5 years ago

I reopened this because it may help with #638.

joshi1983 commented 5 years ago

I deployed the manifest.json file change to https://app.accesslocator.com so anyone can add AccessLocator to their home screen on their phone.

@M4ttoF what would the next step be for implementing those push notifications regarding #638?

M4ttoF commented 5 years ago

@joshi1983 Next we would have to add a service worker into our project. I can start working on this