{"id":27367491,"url":"https://github.com/edsnider/latestversionplugin","last_synced_at":"2025-04-13T06:57:57.410Z","repository":{"id":26821347,"uuid":"110695039","full_name":"edsnider/latestversionplugin","owner":"edsnider","description":"LatestVersion Plugin for Xamarin and Windows apps","archived":false,"fork":false,"pushed_at":"2022-10-14T17:29:21.000Z","size":91,"stargazers_count":151,"open_issues_count":26,"forks_count":37,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-05T07:51:45.686Z","etag":null,"topics":["appstore","latestversion","nuget","playstore","plugin","xamarin","xamarin-forms","xamarin-plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edsnider.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-14T13:40:05.000Z","updated_at":"2024-06-28T08:49:52.000Z","dependencies_parsed_at":"2023-01-14T05:20:51.050Z","dependency_job_id":null,"html_url":"https://github.com/edsnider/latestversionplugin","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsnider%2Flatestversionplugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsnider%2Flatestversionplugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsnider%2Flatestversionplugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edsnider%2Flatestversionplugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edsnider","download_url":"https://codeload.github.com/edsnider/latestversionplugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248675436,"owners_count":21143767,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["appstore","latestversion","nuget","playstore","plugin","xamarin","xamarin-forms","xamarin-plugin"],"created_at":"2025-04-13T06:57:56.794Z","updated_at":"2025-04-13T06:57:57.391Z","avatar_url":"https://github.com/edsnider.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LatestVersion Plugin for Xamarin and Windows apps\n\n[![Build Status](https://dev.azure.com/edsnider/latestversionplugin/_apis/build/status/edsnider.latestversionplugin?branchName=master)](https://dev.azure.com/edsnider/latestversionplugin/_build/latest?definitionId=7\u0026branchName=master)\n[![MyGet](https://img.shields.io/myget/edsnider/vpre/Xam.Plugin.LatestVersion.svg?label=myget)](https://www.myget.org/feed/edsnider/package/nuget/Xam.Plugin.LatestVersion)\n[![NuGet](https://img.shields.io/nuget/v/Xam.Plugin.LatestVersion.svg?label=nuget)](https://www.nuget.org/packages/Xam.Plugin.LatestVersion)\n\nEasily detect if you are running the latest version of your iOS, macOS, Android, or Windows app and open it in the App Store, Play Store, or Microsoft Store to update it.\n\n## Supported platforms and versions\n\n|Platform|Supported|Version|\n| ------------------- | :-----------: | :------------------: |\n|Xamarin.iOS|Yes|7.0+|\n|Xamarin.Android|Yes|10.0+|\n|Xamarin.Mac|Yes|10.7+|\n|Windows (UWP)|Yes|10.0+\u003cbr\u003e(Target 14393+)|\n\n## API Usage\n\n### Check for latest version\n\nCheck if the current running app is the latest version available in the public store:\n\n```csharp\nbool isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion();\n```\n\n### Get latest version number\n\nGet the version number of the current running app's latest version available in the public store:\n\n```csharp\nstring latestVersionNumber = await CrossLatestVersion.Current.GetLatestVersionNumber();\n```\n\n### Get installed version number\n\nGet the version number of the current app's installed version:\n\n```csharp\nstring installedVersionNumber = CrossLatestVersion.Current.InstalledVersionNumber;\n```\n\n### Open app in public store\n\nOpen the current running app in the public store:\n\n```csharp\nawait CrossLatestVersion.Current.OpenAppInStore();\n```\n\n### Set country code\n\nSet the country code to be used when looking up the current app in the public store:\n\n```csharp\nCrossLatestVersion.Current.CountryCode = \"nz\";\n```\n\nNotes about the `CountryCode` property:\n- It is optional; if not provided it will default to \"us\".\n- It is only needed/used on iOS. \n- If used, the value should be an alpha-2 code (ISO 3166-1). \n\n## Example\n\n```csharp\nusing Plugin.LatestVersion;\n\nvar isLatest = await CrossLatestVersion.Current.IsUsingLatestVersion();\n\nif (!isLatest)\n{\n    var update = await DisplayAlert(\"New Version\", \"There is a new version of this app available. Would you like to update now?\", \"Yes\", \"No\");\n\n    if (update)\n    {\n        await CrossLatestVersion.Current.OpenAppInStore();\n    }\n}\n```\n\n## License\n\nLicensed under MIT. See [License file](https://github.com/edsnider/LatestVersionPlugin/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsnider%2Flatestversionplugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedsnider%2Flatestversionplugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedsnider%2Flatestversionplugin/lists"}