Okay thank you.
Can you please answer my last question regarding service worker offline caching and page caching ?
We notice PWA service worker caching conflicts with page caching.
This is the scenario:
We visit our site in frontend and all pages are cached in our server and we are seeing cached version of pages.
But when we login to our PWA dashboard and then logs out then we notice our page caching is not working, we are seeing non cachces pages. But when we delete all service worker caching from browser then our page caching kicks in.
Did you aware of this issue? Any solution ?
Yes instructor download issue is resolved as I explained in my earlier message.
Please check the last 2 messages regarding service worker offline caching and few error messages.
We notice PWA service worker caching conflicts with page caching.
This is the scenario:
We visit our site in frontend and all pages are cached in our server and we are seeing cached version of pages.
But when we login to our PWA dashboard and then logs out then we notice our page caching is not working, we are seeing non cachces pages. But when we delete all service worker caching from browser then our page caching kicks in.
Did you aware of this issue? Any solution ?
also i am getting following warning and error message in our pwa dashboard.
WARNING: cdn.mathjax.org has been retired. Check https://www.mathjax.org/cdn-shutting-down/ for migration tips.
This is related to: https://www.hublearn.com/wp-content/plugins/vibebp/assets/js/editor.js?ver=1.6.3
Message: Vibebp ServiceWorker registration successful with scope: https://www.hublearn.com/
Uncaught (in promise) TypeError: Failed to register a ServiceWorker for scope ('https://www.hublearn.com/welcome-hublearn/') with script ('https://www.hublearn.com/welcome-hublearn/pwabuilder-sw.js'): A bad HTTP response code (404) was received when fetching the script.
Download course is working.
I had to clear cache and re login to see the effect.
Question: It does not download as zip, does it download the course in browser and later if no internet connection available, then the course will be available to view? Correct ?
If user clear browser cache will it clear the course as well ?
https://www.awesomescreenshot.com/image/15631490?key=d7dbf3b069b4138cafa50587a4ec2d06
https://www.awesomescreenshot.com/image/15631442?key=178ea56ee6e989e22642e45d8d49ed8b
and the code you sent me i used it but it seems manifest file not generated for whole site except in pwa dashboard. And in PWA dashboard while visiting in mobile i can see 'add to home screen' popup.
But we wanted to show the manifest file for whole site and will show add to home screen while in mobile to all pages.
Even I set the home page as app for service worker option in vibebp->service worker tab, it wont show manifest file. I did generated service worker each time i change soemthing.
Okay I enabled service worker from vibebp and regenerated service worker and in our PWA dashboard in manage course section i can see a new icon on all courses boxes.
After clicking on the icon on a course, message popups in bottom says: course is available for download offline.
But when i click on enrolled course section, and go to that course, i dont see any download icon to download the course.
What i am missing here?
Also on some course while clikcin the icon, i see this:
Course package set. Course can't be set to offline!
Thank you its working. You can close ticket.
oh thank you for the code. Appreciate. Didnt tested it out, we will test it today.
But we dont have wplms customizer pluign , i believe this plugin is old.
We are using latest version of wplms theme (4.099) and wplms plugin. Can I use the code in child theme fucntions.php file?
Thank You.
I understand your point. But we wanted full site as PWA. So when user visits it from mobile, they will be shown "add to home" popup message and then they can use the site an app (Progressive Web app).
Hi let me know when you release or fix the plugin?
Okay I got it. Let me run the service worker. But your service worker runs only in PWA dashboard not the whole site. Usually we use plugin for Service Worker and it has home to screen popup in mobile mode, offline caching and push notifications. But your SW does not have add to home screen option in mobile mode.
This reply has been marked as private.
Hi we dont see any download icon or button in our PWA dashboard either free or paid courses! what settings we need to check ?