Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error checking version on iOS #25

Closed
JesperNJessen opened this issue Apr 7, 2020 · 9 comments · Fixed by #32
Closed

Error checking version on iOS #25

JesperNJessen opened this issue Apr 7, 2020 · 9 comments · Fixed by #32

Comments

@JesperNJessen
Copy link

Bug

Plugin Version: 1.1.2 and 2.0.0-beta.76
Platform: iOS
Device/Hardware: iPhone 6

Expected behavior

Getting the latest version should return a boolean

Actual behavior

Exception is thrown.

Error looking up app details in App Store. BundleIdentifier=<Removed for security reasons, but matches what is in appstoreconnect>
  at Plugin.LatestVersion.LatestVersionImplementation.LookupApp () [0x0017f] in <b9443c4023a448e79dd79a7c32c8f968>:0 
  at Plugin.LatestVersion.LatestVersionImplementation.GetLatestVersionNumber () [0x00065] in <b9443c4023a448e79dd79a7c32c8f968>:0 
  at Plugin.LatestVersion.LatestVersionImplementation.IsUsingLatestVersion () [0x00077] in <b9443c4023a448e79dd79a7c32c8f968>:0 
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <624bcc4ce53347508a7b8fa821d78da4>:0 
  at System.Json.JsonArray.get_Item (System.Int32 index) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/src/Xamarin.iOS/external/corefx/src/System.Json/src/System/Json/JsonArray.cs:36 
  at Plugin.LatestVersion.LatestVersionImplementation.LookupApp () [0x0011d] in <b9443c4023a448e79dd79a7c32c8f968>:0 

Steps to reproduce the issue

try
{
    var latest = await CrossLatestVersion.Current.IsUsingLatestVersion();
}
catch (Exception x)
{
    return;
}
@lunjio
Copy link

lunjio commented Apr 19, 2020

The same issue here, the reason is your app available only in limited region (in my case is Russian Federation), so there must be included country identifier beetwen "http://itunes.apple.com/" and "/lookup?bundleId={bundle identifier}", ill try make pull request, to solve issue.

@lunjio
Copy link

lunjio commented Jun 17, 2020

I committed the pull request for this changes, but it still without any action about two month.

@lunjio
Copy link

lunjio commented Jun 17, 2020

if it still bothering you, you can download my changed repository that i forked, open it in visual studio, build, get an output dll that you can use in your project.

@TatyanaLo
Copy link

Facing the same issue, when will it be merged?

@abelgarciasaiz
Copy link

I'm facing the same issue as well

@thomasgalliker
Copy link

Is this nuget package still supported?

@PauloGaldo
Copy link

Almost a year on this issue, when will be released that PR?

@edsnider
Copy link
Owner

edsnider commented Apr 6, 2021

I got it ready yesterday but dealing with a failure in the CI pipeline. Once that is fixed it will roll out to Nuget.

@edsnider
Copy link
Owner

edsnider commented Apr 7, 2021

Available as a pre-release nuget here: https://www.nuget.org/packages/Xam.Plugin.LatestVersion/2.1.0-beta.96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants