Will it detect the store version based on the availability of device os version?
Will it detect the store version based on the availability of device os version? For example, iOS app store allows developers only updating app supporting iOS version 14 and 15. In a scenario, developer update an app version from 1.9 to 2.0, to stop supporting iOS version 13. But iOS 13 user can still download app version 1.9, which still support iOS 13. Will new_version detect the app store version as 2.0 on iOS 13 device, or it will be 1.9?
No, the plugin doesn't do this.
I also don't think it is possible to do that exactly, because the iTunes API only reports the most recent uploaded version of the app. It doesn't give any information about past versions.
However, we could add a feature that checks if the user's OS meets the minimum requirements for the app, and if not, assume they can't upgrad. Ex:
localVersion: 1.0.0
localOS: 12
storeVersion: 2.0.0
minOSVersionToUpgrade: 13
canUpgrade: false // <- new behavior
I'll leave this open to track that feature.