Results 1 to 3 of 3

Thread: Progressive Web App (PWA) support ?

  1. #1

    Default Answered: Progressive Web App (PWA) support ?

    Our team has upgraded to Architect 4.2.1 for exiting projects and have found no issue. Good job, Sencha Architect team !

    (reference https://www.sencha.com/blog/creating...sencha-ext-js/) Next, we would like to build Progressive Web App (PWA). Does anyone know if it can be done with Architect ? If so, how to add annotation (// @sw-cache) ?

  2. Hello

    Yeah it can be done.

    You can see the example SA client in here:

    https://github.com/petrvecera/PWA/tree/SA-client

    Should be merged to the original repo soon.
    About the // @sw-cache, in SA you can't add comment anywhere you want but you can specify all of it in the app.json
    You can learn more about it in here:
    http://docs.sencha.com/cmd/guides/pr...eworker_config

    Regards
    Petr

  3. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    Hello

    Yeah it can be done.

    You can see the example SA client in here:

    https://github.com/petrvecera/PWA/tree/SA-client

    Should be merged to the original repo soon.
    About the // @sw-cache, in SA you can't add comment anywhere you want but you can specify all of it in the app.json
    You can learn more about it in here:
    http://docs.sencha.com/cmd/guides/pr...eworker_config

    Regards
    Petr

  4. #3

    Default

    Thank you for your quick response. Following your information, we were able to build Progressive Web Application with Architect successfully.

    There was one glitch. We ran into one issue for a couple of days with this error,

    Uncaught (in promise) TypeError: Request failed at <anonymous> service-worker.js:1

    It turned out the PWA pre-caches a few file types the web server does not support. Specifically, file types "md", "otf", and "scss". The solution for us was to edit the service-worker.js file, removed all of those files from "precacheConfig" variable. Then the service worker started to work.

    Cheers,

Similar Threads

  1. progressive loading/scrolling example
    By bareflix in forum Ext 3.x: Help & Discussion
    Replies: 1
    Last Post: 26 Apr 2010, 2:20 PM
  2. Progressive Enhancement with Ext JS
    By mraible in forum Community Discussion
    Replies: 10
    Last Post: 8 Jan 2009, 1:14 PM
  3. Using BasicForm for progressive enhancement
    By berend in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 8 May 2007, 11:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •