tschoffelen/react-native-check-version

"Not a valid semver version: Varies with device"

Closed this issue · 6 comments

My application on the device is with version 1.0.3 exactly the same as the store, but needsUpdate always returns true.

I tried to change the device version to 1.0.4 in an attempt to solve the problem, but needsUpdate still returns true.

image

image

Interesting! Haven't seen that one before. Would you be able to email me the bundle ID so that I can try to reproduce it? thomas at schof.co

Thanks for your email! Posting this here as well as it might be helpful for others:

I've had a quick look, and it seems like this happens when there are multiple APKs/bundles in production at the same time: https://stackoverflow.com/a/25463637

In that case, we can't automatically determine the version available for the current user. I'm not sure if there's a way to work around that, although needsUpdate should definitely not be true in that case, I'll get that fixed!

Hi @tschoffelen With regards to the above. Have you managed a fix?

Im considering using this plugin and just want to make sure it is foolproof and won't fail as live store releases are a big thing, can't have it happen even once that true is set all the time and users keep seeing a message to update and they have the latest.

Appreciate the plugin and really do hope I can use it.

Hi @RichardBoyder! Yes, this problem has been resolved. Anything that doesn't look like a version number (ie doesn't have a period in the string), won't result in a needsUpdate: true.

6a8d800

Still not sure why Google Play is returning 'Varies with device' for this specific bundle though.

Closing because this problem has been resolved, and the only open question is also addressed in #14.

I am also facing the same issue on iOS.