Skip to content

NuGet package that implementing Android In-App Updates within a MAUI application with debugging capabilities

License

Notifications You must be signed in to change notification settings

oscoreio/Maui.Android.InAppUpdates

Repository files navigation

Maui.Android.InAppUpdates

Nuget package CI/CD License: MIT

NuGet package that implementing Android In-App Updates for MAUI with debugging capabilities. Flexible

Usage

  • Add NuGet package to your project:
<PackageReference Include="Oscore.Maui.Android.InAppUpdates" Version="1.2.0" />
  • Add the following to your MauiProgram.cs CreateMauiApp method:
builder
    .UseMauiApp<App>()
+   .UseAndroidInAppUpdates()
    .ConfigureFonts(fonts =>
    {
        fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
        fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
    });

Notes

The default behavior:

  • If priority 1-3 is specified, flexible update will be offered
  • If priority 4-5 is specified, immediate update will be offered

There is no need to specify conditional compilation here, the package provides an empty method for non netx.0-android platforms as a stub to make integration as simple as possible.
It will display a window when starting an application or resume according to the official guides.
You cannot see the popup dialog while developing or if you distribute it manually. As you can see here, you have to download the app from the Play Store to see the popup. I recommend using Android Play Store's “Internal App Sharing” feature to test.

Links

About

NuGet package that implementing Android In-App Updates within a MAUI application with debugging capabilities

Topics

Resources

License

Stars

Watchers

Forks

Languages