Oscore.Maui.AppStoreInfo
1.0.2
Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Oscore.Maui.AppStoreInfo --version 1.0.2
NuGet\Install-Package Oscore.Maui.AppStoreInfo -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oscore.Maui.AppStoreInfo" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Oscore.Maui.AppStoreInfo --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Oscore.Maui.AppStoreInfo, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Oscore.Maui.AppStoreInfo as a Cake Addin #addin nuget:?package=Oscore.Maui.AppStoreInfo&version=1.0.2 // Install Oscore.Maui.AppStoreInfo as a Cake Tool #tool nuget:?package=Oscore.Maui.AppStoreInfo&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Maui.AppStoreInfo
Allows you to check the information in App stores(for example the latest published version) and suggest actions to the user based on this.
Usage
- Add NuGet package to your project:
<PackageReference Include="Oscore.Maui.AppStoreInfo" Version="1.0.0" />
- Add the following to your
MauiProgram.cs
CreateMauiApp
method:
builder
.UseMauiApp<App>()
+ .UseAppStoreInfo(options =>
+ {
+ options.CountryCode = "gb"; // Optional, default is "us"
+ })
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
- Use the
AppStoreInfo.Current
class orIAppStoreInfo
from DI to check the latest version and suggest actions to the user:
if (!await AppStoreInfo.Current.IsUsingLatestVersionAsync())
{
await AppStoreInfo.Current.OpenApplicationInStoreAsync();
}
Notes
- 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 if you need to check for updates.
Links
- https://github.com/edsnider/latestversionplugin/
- https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/appmodel/app-information?view=net-maui-8.0&tabs=android
- https://stackoverflow.com/questions/49072305/official-api-for-grabbing-app-version-on-google-playstore/58590547#58590547
- https://stackoverflow.com/questions/60043944/does-ios-has-in-app-updates-like-feature-as-of-android
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-android34.0 is compatible. net8.0-browser was computed. net8.0-ios was computed. net8.0-ios17.2 is compatible. net8.0-maccatalyst was computed. net8.0-maccatalyst17.2 is compatible. net8.0-macos was computed. net8.0-tizen8.0 is compatible. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows10.0.19041 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.Maui.Controls (>= 8.0.6)
-
net8.0-android34.0
- Microsoft.Maui.Controls (>= 8.0.6)
-
net8.0-ios17.2
- Microsoft.Maui.Controls (>= 8.0.6)
-
net8.0-maccatalyst17.2
- Microsoft.Maui.Controls (>= 8.0.6)
-
net8.0-tizen8.0
- Microsoft.Maui.Controls (>= 8.0.6)
-
net8.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 8.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.