new_version icon indicating copy to clipboard operation
new_version copied to clipboard

Plugin not fetching most recent version from iOS App Store

Open NIkos77-cloud opened this issue 4 years ago • 7 comments

for Android it's working fine but IOS side it's not working. can anyone help me on this ?

NIkos77-cloud avatar Jan 12 '22 04:01 NIkos77-cloud

I have the same problem. I think it's a caching problem. maybe to prevent this, the current millis can be added to the url? in _getiOSStoreVersion(PackageInfo packageInfo) we can add final parameters = {"bundleId": "$id", "timestamp":"${DateTime.now().millisecondsSinceEpoch}"}; I think this should work

steff107 avatar Jan 12 '22 08:01 steff107

I created a PR (with other account). Let's see: https://github.com/timtraversy/new_version/pull/86

sbergmair avatar Jan 12 '22 10:01 sbergmair

Can someone describe the exact issue here? Is it that when you push a new version to the app store, the plugin doesn't detect it right away? But it does eventually detect the new version right?

timtraversy avatar Jan 13 '22 17:01 timtraversy

Following scenario: I uploaded a new version to TestFlight and brought it to AppStore, then it takes up to one day, until the caching system gets the real last version of the app. I tried with postman too. Postman also caches the requests to same urls. After adding some random string, I immediately got the correct version.

That can maybe help: https://github.com/dart-lang/sdk/issues/34966#issuecomment-862128693

sbergmair avatar Jan 13 '22 21:01 sbergmair

Following scenario: I uploaded a new version to TestFlight and brought it to AppStore, then it takes up to one day, until the caching system gets the real last version of the app. I tried with postman too. Postman also caches the requests to same urls. After adding some random string, I immediately got the correct version.

So if i understand well your post, caching system refresh the cache after 1 day? I ran into same problem when i upload a new version to app store. In debug i always see the new version of my app, but in production it seems like this package does not see the new version.

pepe19000 avatar Feb 10 '22 08:02 pepe19000

Following scenario: I uploaded a new version to TestFlight and brought it to AppStore, then it takes up to one day, until the caching system gets the real last version of the app. I tried with postman too. Postman also caches the requests to same urls. After adding some random string, I immediately got the correct version.

So if i understand well your post, caching system refresh the cache after 1 day? I ran into same problem when i upload a new version to app store. In debug i always see the new version of my app, but in production it seems like this package does not see the new version.

Did you solve this issue?

xeandy avatar Feb 14 '22 16:02 xeandy

Following scenario: I uploaded a new version to TestFlight and brought it to AppStore, then it takes up to one day, until the caching system gets the real last version of the app. I tried with postman too. Postman also caches the requests to same urls. After adding some random string, I immediately got the correct version.

So if i understand well your post, caching system refresh the cache after 1 day? I ran into same problem when i upload a new version to app store. In debug i always see the new version of my app, but in production it seems like this package does not see the new version.

Did you solve this issue?

Not yet :( Maybe this fix can help you: https://github.com/sbergmair/new_version/tree/patch-2

pepe19000 avatar Feb 14 '22 17:02 pepe19000