ClassiCube
ClassiCube copied to clipboard
Checking for updates breaks when targetting android 9.0+
Because https://cs.classicube.net/client/builds.json
redirects to http://classicube.s3.amazonaws.com/client/builds.json
, and android won't auto follow redirects from https to http.
Because of the way cs.classicube.net handles redirects, having it redirect to https://
instead would be rather difficult. So I need to add support for manually following redirects in Http.c
.
(implementation would probably be along the lines of check status is 301-302, if so change req->url to Location
header. Attempt this only up to 10 times)
Why does android check for updates if it cannot install them?
It still needs to know if there is a newer version so it can inform the user they should redownload and reinstall the apk to get the latest version.
Ah right of course