capacitor-updater icon indicating copy to clipboard operation
capacitor-updater copied to clipboard

iOS update occasionally fails to copy some files.

Open playaz87 opened this issue 3 years ago • 6 comments

We've had a few reports from users after an update that the app is broken. Based on screenshots we've been sent, in some cases it looks like the css files are missing and other cases some image assets are missing.

Reloading the app doesn't solve the issue but, if they uninstall the app, download again from the App Store and then reinstall the web app update, it works.

This points to it not being a device or configuration issue. Perhaps a corrupt download? A nice feature would be to be able to provide a checksum to CapacitorUpdater.download().

playaz87 avatar Jul 27 '22 01:07 playaz87

@playaz87 you use the manual mode right ? checksum is on the roadmap, it's a must have i agree !

riderx avatar Jul 27 '22 12:07 riderx

@riderx Yes, I do use manual mode. Any eta on the checksum?

playaz87 avatar Jul 28 '22 01:07 playaz87

i have to check probably with the v4 mid august

riderx avatar Jul 28 '22 11:07 riderx

@riderx Great, I'll keep an eye out!

playaz87 avatar Jul 29 '22 07:07 playaz87

@playaz87 can you share a code reproduction for this issue, i have check and the checksum issue could only happen if security corruption, checksum is implemented at os level

riderx avatar Aug 03 '22 01:08 riderx

@riderx I don't know if it's an issue specific to our app or a general issue so I can't really provide a repo.

Our app checks our server to see if there's an update. If an update is available the server sends the download link. I'd like to be able to send a checksum for the zip file along with the download link so that the plugin can compare the downloaded file with the checksum.

playaz87 avatar Aug 03 '22 02:08 playaz87

@playaz87 i was able today to reproduce your issue with image missing ! i try to understand it now

riderx avatar Aug 28 '22 12:08 riderx

@riderx It's a weird one. We've downgraded to 2.3.3 which I've used in another project without issue. We haven't had any complaints yet, but it's only been 2 weeks and 1 update.

playaz87 avatar Aug 28 '22 13:08 playaz87

checksum has been enforced in the last version of the plugin 4.4.0.

riderx avatar Oct 06 '22 16:10 riderx