ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
6.06k stars 144 forks source link

APKPure: Installs the same version instead of the newer one when updating. #941

Closed ghost closed 9 months ago

ghost commented 9 months ago

Hi, this is happening for quite some time but I didn't find someone that talks about it.

I think it is only happening with apps installed from APKPure, when there is an update, it will detect it and will know the version of the new one, but when downloading and installing nothing will happen, the app remains with the same version and I can see that from the app properties in the settings, I don't know why is it downloading the same version, I tried many time time and I confirm that nothing is wrong with the downloading and installing processes.

At the same time, you can go to the site and get the latest version normally if you download it and install it by yourself.

I hope you will take a look at this because it is annoying a little bit.

Note: This problem is not persistent, because after some period of time it will get the newer version, but I wanted to tell you so you'll see what is happening exactly and determine if it is a problem in Obtainium or not.

ImranR98 commented 9 months ago

Does this happen with all apps or just specific ones?

ghost commented 9 months ago

Many of them, I don't think it is something specific, but I will let you know if I discover anything else.

XxTriviumxX commented 9 months ago

sometimes it happens to me too. i have to click the source url, and then update by downloading the apk. At least it is telling me there is a new update.

It may be a problem on apkpure's side though.

ImranR98 commented 9 months ago

The way the APKPure source currently works is that we extract the version number from the webpage, but we don't actually use it in the APK download. The APK URL just references "latest" for example https://d.apkpure.com/b/APK/com.instagram.android?version=latest (this is one reason why there's no option to download older versions of an app). I tried specifying a version, for example https://d.apkpure.com/b/APK/com.instagram.android?version=302.1.0.36.111 but that doesn't work.

So what's most likely happening is that there's a time delay between when they update the webpage and when they update the "latest" APK served at the download link. I don't think that's something Obtainium could fix (assuming it's actually the problem).

ghost commented 9 months ago

Alright, thank you a lot for looking into it, you can close the issue if you want.