SudoPlz / sp-react-native-in-app-updates

An in-app updater for the native version of your react-native app.
MIT License
487 stars 66 forks source link

Issue: In-App Updates Not Working as Expected on Android and IOS #188

Open grandolinah opened 1 month ago

grandolinah commented 1 month ago

Hello,

I am encountering an issue with the sp-react-native-in-app-updates library in my React Native app.

App versions:

 "react-native": "0.73.1",
 "sp-react-native-in-app-updates": "1.4.0",
 "react-native-device-info": "11.1.0",

Description of the issue:

I have two different APKs uploaded to the internal test track in the Google Play Console, with the following version codes and version names:

versionCode: 412196114, versionName: 309.0.0 versionCode: 412196115, versionName: 310.0.0

When I try to check for updates in my app using the example provided in the setup (https://github.com/SudoPlz/sp-react-native-in-app-updates/blob/master/example/src/App.tsx), I receive unexpected results (please see the attached image below for reference).

image

It seems like the in-app update feature is not correctly identifying the available updates between the two APKs.

Please let me know if any additional information is needed or if there's a known issue regarding this behavior.

Seems to be the same issue when I am testing in Testflight

image

Thank you!

ryonwhyte commented 3 weeks ago

If you already have the app in play store, then the version you upload to internal app share must be lower than the version in production. Only after doing this was I able to see the popup appear on android.