{"id":22239262,"url":"https://github.com/oscoreio/maui.appstoreinfo","last_synced_at":"2025-10-13T09:30:29.309Z","repository":{"id":223292231,"uuid":"759801106","full_name":"oscoreio/Maui.AppStoreInfo","owner":"oscoreio","description":"Allows you to check the information in App stores(for example the latest published version) and suggest actions to the user based on this.","archived":false,"fork":false,"pushed_at":"2024-12-05T01:02:36.000Z","size":327,"stargazers_count":9,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-26T10:54:56.989Z","etag":null,"topics":["app-store","check","csharp","dotnet","google-play","information","latest-version","maui","net8","updates","windows-store"],"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/oscoreio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-02-19T11:08:06.000Z","updated_at":"2024-12-13T02:17:17.000Z","dependencies_parsed_at":"2024-03-20T17:53:57.092Z","dependency_job_id":null,"html_url":"https://github.com/oscoreio/Maui.AppStoreInfo","commit_stats":null,"previous_names":["oscoreio/maui.inappupdates","oscoreio/maui.appstoreinfo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscoreio%2FMaui.AppStoreInfo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscoreio%2FMaui.AppStoreInfo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscoreio%2FMaui.AppStoreInfo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oscoreio%2FMaui.AppStoreInfo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oscoreio","download_url":"https://codeload.github.com/oscoreio/Maui.AppStoreInfo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":236323473,"owners_count":19130635,"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":["app-store","check","csharp","dotnet","google-play","information","latest-version","maui","net8","updates","windows-store"],"created_at":"2024-12-03T03:18:29.343Z","updated_at":"2025-10-13T09:30:23.932Z","avatar_url":"https://github.com/oscoreio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maui.AppStoreInfo\n\n[![Nuget package](https://img.shields.io/nuget/vpre/Oscore.Maui.AppStoreInfo)](https://www.nuget.org/packages/Oscore.Maui.AppStoreInfo/)\n[![CI/CD](https://github.com/oscoreio/Maui.AppStoreInfo/actions/workflows/dotnet.yml/badge.svg?branch=main)](https://github.com/oscoreio/Maui.AppStoreInfo/actions/workflows/dotnet.yml)\n[![License: MIT](https://img.shields.io/github/license/oscoreio/Maui.AppStoreInfo)](https://github.com/oscoreio/Maui.AppStoreInfo/blob/main/LICENSE)\n\nAllows you to check the information in App stores(for example the latest published version)\nand suggest actions to the user based on this.\n\n### Supported Platforms\n| Platform | Minimum Version Supported             |\n|----------|---------------------------------------|\n| iOS      | 12.2+                                 |\n| macOS    | 15+                                   |\n| Android  | 5.0 (API 21)                          |\n| Windows  | 11 and 10 version 1809+ (build 17763) |\n\u003e [!NOTE]  \n\u003e Since Android doesn't provide an official API, there is no support for this other than opening a store page. It is recommended to use [Android In-App Updates](https://github.com/oscoreio/Maui.Android.InAppUpdates) if you need to check for updates.\n\n# Usage\n- Add NuGet package to your project:\n```xml\n\u003cPackageReference Include=\"Oscore.Maui.AppStoreInfo\" Version=\"1.1.0\" /\u003e\n```\n- Add the following to your `MauiProgram.cs` `CreateMauiApp` method:\n```diff\nbuilder\n    .UseMauiApp\u003cApp\u003e()\n+   .UseAppStoreInfo(options =\u003e\n+   {\n+       options.CountryCode = \"gb\"; // Optional, default is \"us\"\n+       options.PackageName = \"com.companyname.appname\"; // Optional, default is AppInfo.Current.PackageName\n+       options.CurrentVersion = new Version(1, 0, 0); // Optional, default is AppInfo.Current.Version\n+   })\n    .ConfigureFonts(fonts =\u003e\n    {\n        fonts.AddFont(\"OpenSans-Regular.ttf\", \"OpenSansRegular\");\n        fonts.AddFont(\"OpenSans-Semibold.ttf\", \"OpenSansSemibold\");\n    });\n```\n- Use the `AppStoreInfo.Current` class or `IAppStoreInfo` from DI to check the latest version and suggest actions to the user:\n```csharp\nif (!await AppStoreInfo.Current.IsUsingLatestVersionAsync())\n{\n    await AppStoreInfo.Current.OpenApplicationInStoreAsync();\n}\n\n// This is all based on the information provided by the following method\nvar information = await AppStoreInfo.Current.GetInformationAsync();\n            \nawait DisplayAlert(\n    \"App Store Information\",\n    $\"Title: {information.Title}\\n\" +\n    $\"Description: {information.Description}\\n\" +\n    $\"Latest Version: {information.LatestVersion}\\n\" +\n    $\"External Store Uri: {information.ExternalStoreUri}\\n\" +\n    $\"Internal Store Uri: {information.InternalStoreUri}\\n\" +\n    $\"Release Notes: {information.ReleaseNotes}\\n\" +\n    $\"Application Size: {information.ApplicationSizeInBytes/1024/1024} MB\\n\",\n    \"OK\");\n```\n\n# Links\n- https://github.com/edsnider/latestversionplugin/\n- https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/appmodel/app-information?view=net-maui-8.0\u0026tabs=android\n- https://stackoverflow.com/questions/49072305/official-api-for-grabbing-app-version-on-google-playstore/58590547#58590547\n- https://stackoverflow.com/questions/60043944/does-ios-has-in-app-updates-like-feature-as-of-android\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscoreio%2Fmaui.appstoreinfo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foscoreio%2Fmaui.appstoreinfo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foscoreio%2Fmaui.appstoreinfo/lists"}