Tangerine-Community / Tangerine

Digitize your offline data collection. Create your Forms online with Tangerine Editor, conduct them offline with the Tangerine Android App. All results you collect can be exported as a CSV file, easy for processing in a spreadsheet. Tangerine has been used in over 1 million assessments and surveys in over 60 countries and in 100 languages.
http://www.tangerinecentral.org/
GNU General Public License v3.0
47 stars 30 forks source link

PWA assets (sound,video) only work when online #1905

Open lachko opened 4 years ago

lachko commented 4 years ago

This is perhaps related to #1654 It seems all assets in a pwa are not getting packaged into the app

rjcorwin commented 4 years ago

The problem here is probably that the ./assets/media folder is not getting picked up by the PWA index of files to cache. Or it may be we have a file extension filter on what gets indexed because images in the ./assets/media folder may be getting indexed, but not sounds and video.

chrisekelley commented 1 year ago

Log screenshot:

image

net::ERR_INTERNET_DISCONNECTED Uncaught (in promise) DOMException: Failed to load because no supported source was found.

chrisekelley commented 1 year ago

May need to add png and mp3 to the config in workbox-cli-config.js :

"globPatterns": [
    "**/*.{md,html,json,png,txt,xml,ico,svg,jpg,gif,js,css,woff2,woff,ttf}"
  ],
chrisekelley commented 1 year ago

That worked!