Hey all!
Before starting, if you want to ask the question about a missing set, please first check that you are on the latest version :)
UrzaGatherer is based on Service Workers and sometimes they could be stubborn :)
First things to check:
* Close the app/browser completely (Kill it!!)
* Start the app/browser and go to settings and in the Database section click on Update Database button and restart
If this is not working, here is a procedure to follow to force update (based on your browser. Please note that Android app is based on Chrome):
Hi ! Really enjoying your application for several years, allowing me to manage my collection and the one of my friends on my computer and mobile.
Unfortunately, since v13.0.17, i cannot update the application on my mobile phone. I tried killing and restarting the app, deleting it and reinstalling it, going to urzagatherer.app but i still not manage to update it. I had a look at your prposed solution : https://jun711.github.io/web/how-to-force-update-a-service-worker-on-chrome-firefox-and-safari/ however there is'nt a proces for mobile. Any solution ?
ok just published 14.0.3 with hopefully a fix (there is nothing server side with service worker so the bug is for sure in my code)
ho nice catch! Let me check that!
@David Catuhe I did some experimenting, and found that the service worker failing to update is sometimes not the reason for the update failure. The problem (in that subset of cases) is that the "/Urzagatherer.js" and "/db.data" files are getting incorrectly cached within the "urzagatherer-images-v1" cache storage/collection, rather than the "urzagatherer-vXXXX" cache collection.
Thus even when the service-worker updates, the service-worker's new contents are not getting "used", because the cached version of those two files are getting supplied by the images cache rather than the service-worker's new "urzagatherer-vXXXX" cache collection.
To fix this, I had to manually open the "urzagatherer-images-v1" cache in dev-tools, find the "Urzagatherer.js" and "db.data" files, then delete them from the cache. (you can also delete all of the "Cache storage" collections overall, but then you have to wait for the images to redownload, which adds time and server load)
Note that this is not just conjecture; I have encountered this problem for every Urzagatherer update (on my desktop PC) for over a year now (since my post about it earlier here: https://www.deltakosh.com/urzagatherer/main/comment/bcc8c9f0-3e57-4f98-8635-b9a2fc084597?postId=62df406aca85a90013b07a00), and this process is how I fix it each time.
Screenshots to show what I mean...
1) On old version. Already tried refreshing, pressing "Update application" in settings, refreshing again, etc. Opened up dev-tools, and saw that the "Urzagatherer.js" and "db.data" files were incorrectly stored into the images cache collection (take note of the highlighted files' sizes): https://i.imgur.com/iMrU5HC.png
2) Just showing the same page as before, but after I had deleted the two files from the cache (have not refreshed yet): https://i.imgur.com/QOSpcJm.png
3) Showing the page after refreshing the page (after deleting of those incorrectly-cached files; take note of the highlighted files' sizes, which are different than the file-sizes in screenshot 1): https://i.imgur.com/zUW7tWI.png
So a fix (for this variant of the problem at least) would be a restriction in the cache system to block any "new entries" to the images cache that is not an image file (ie. ends with ".jpg" or ".png").
I mean, there must be a bug in the caching logic upstream that is causing the js/data files to be inserted into the images cache, so fixing that logic would be ideal; but a bandaid solution would be to provide this restriction at the lower-level, of just blocking any insertions to the images cache for non-image urls.
The procedure to follow to force update isn't possible to do on my Android phone. Any ideas what to do now? I've closed/killed the app, updated the database and restarted the app, updated my phone, and uninstalled and reinstalled the app - but to no avail. I'm starting to get a bit frustrated to be honest, beacuse I've really loved UrzaGatherer till now.
Alright. Now back to 'normal'. Thanks again!
Probably a question for a different thread, but since you're here...I assume the dated "2024" Outlaws cards will be added when images are available? I just noticed the lack of that option available when selecting (only because Selvala, Eager Trailblazer will be a fun new Elf commander to try and she happens to be a 2024 dated foil). There are way too many printings / treatments to keep track of...I do not envy what you have to deal with.
I know this is an old post, but figured I'd just respond to it. I'm having a heck of a time getting my desktop and browser apps to update on my computer. My phone updated by itself. I prefer to add cards via my computer and was hoping I could add the items I picked up in my set booster box from Outlaws but still can't seem to get either it or Fallout to load.
How does one simply 'kill the app/browser' on the computer easily? I use Chrome for everything and I'm pretty sure everything has been killed. But if I tell it to update it just says "Please close and restart your app or browser to complete the update." I've restarted my computer completely and shut it down and booted it back up. It's a windows box.
As for the other idea, I don't know anything about the service worker situation in Chrome. I don't have the option to update so presumably none are loaded? I don't know nothin about it.
Any help would be appreciated.