Skip to Main Content
Feature Request FR-3253
Product Area User Interface
Status CLOSED

8 Voters

Better support for PWA offline

jorge.cribb Public
· Jul 6 2023

Idea Summary
Better support for PWA offline 

Use Case
In some cases the PWA apps must work in offline mode to syncronize later.

Ex: Work-force in the field making data capture

Preferred Solution (Optional)
Some tables may be marked as required for PWA offline mode and the sync procedure will be based on timestamp of each record

Comments

Comments

  • vincent morneau Admin OP 2.2 years ago

    Hi @jorge.cribb , great idea! we hear about it quite often. So much that it's been already mentioned in the PWA roadmap https://apex.oracle.com/pls/apex/r/apex_pm/apex-pwa-reference/roadmap

    However this is a large undertaking for APEX and we cannot commit to any timeline just yet.

  • michael.weinberger 2 OP 2.2 years ago

    There is an easy way to achieve this without doing changes to Apex. There just a a few steps to be done:

    1. there needs to be a script that synchronizes localStorage with one table, as mentioned in the preferred solution
    2. a script that loads data from localStorage in the html page - either in a form or as a basic report.
    3. and some js that writes the html input values back into localStorage.
    4. there should be an easy way to make an offline copy of the html, css and js used on an Apex page. With all items and buttons, but no data. Apex already knows how to display a static page if the connection is lost unfortunately without the css and js (or html) of my application.

    This would result in an single page offline application Which would  be sufficient for 90% of my use cases. 

    Steps 1-3  could be implemented with a little js knowledge. It is step (4) that seems impossible to be done without support from the Oracle Apex Team

  • jorge.cribb OP 2.2 years ago

    @michael.weinberger 2 I aprecciate your workaround, in fact, I use this approach in some apps outside Apex… but in Apex I would prefere an apex-integrated feature to do this because the dev team is diverse in skills and my own solution may require adaptations in the future in oposite to the apex-solution that will evolve with technologies

  • michael.weinberger 2 OP 2.2 years ago

    @jorge.cribb I agree, an apex integrated full feature would be great. But it will take quite some time for the Apex team to build this.
    My suggestion is a step by step approach that will give us developers a more fitting base to start with in the next releases.

  • jorge.cribb OP 2.2 years ago

    Thanks a lot @michael.weinberger 2