Jc.AppRating.Avalonia.iOS 0.2.0

dotnet add package Jc.AppRating.Avalonia.iOS --version 0.2.0
                    
NuGet\Install-Package Jc.AppRating.Avalonia.iOS -Version 0.2.0
                    
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="Jc.AppRating.Avalonia.iOS" Version="0.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Jc.AppRating.Avalonia.iOS" Version="0.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Jc.AppRating.Avalonia.iOS" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Jc.AppRating.Avalonia.iOS --version 0.2.0
                    
#r "nuget: Jc.AppRating.Avalonia.iOS, 0.2.0"
                    
#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.
#:package Jc.AppRating.Avalonia.iOS@0.2.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Jc.AppRating.Avalonia.iOS&version=0.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Jc.AppRating.Avalonia.iOS&version=0.2.0
                    
Install as a Cake Tool

Jc.AppRating.Avalonia

Library to bring App store app ratings to Avalonia mobile projects.


Table of Contents

Introduction

Jc.AppRating.Avalonia is a library to bring app store rating services to Avalonia Android and iOS projects.

This includes the in-app rating functionality for Android and iOS as well as the ability to open the app store page for the app to review.

Usage

To use Jc.AppRating.Avalonia you must add the Jc.AppRating.Avalonia package to your cross-platform project.

dotnet add package Jc.AppRating.Avalonia

Followed by adding the Android/iOS Jc.AppRating.Avalonia.xxx package to the platform specific project(s).

dotnet add package Jc.AppRating.Avalonia.Android
dotnet add package Jc.AppRating.Avalonia.iOS

Then you must register AppRating in the CustomizeAppBuilder method in MainActivity.cs and AppDelegate.cs for Android and iOS respectively:

protected override AppBuilder CustomizeAppBuilder(AppBuilder builder)
{
    return base.CustomizeAppBuilder(builder)
        ...
        .UseAppRating();
}

Finally, you can access the methods like so:

// Subscribe to error events (when either method fails to execute)
AppRating.Current.OnError += (sender, error)
          => Console.WriteLine(error.Message);

// Open an in-app rating dialog
AppRating.Current.RequestInAppRatingAsync();
// Open the respective store app on the rating page
AppRating.Current.RequestInStoreRatingAsync("appId");

iOS

In development, the review dialog will appear for you, but will not submit reviews.

Note: The dialog will not appear when the app is downloaded via TestFlight.

<img alt="iOS Banner" src="img/ios-in-app.png" width="250" />

Android

In development, the review dialog will not appear for you... It can only be tested via an internal test track. You can see more information around that here.

Note: In production, the dialog will also not always show due to Google's crazy policies. It seems to be affected by a variety of factors, including quotas, whether you've had a recent review, and whether you've had a recent update, so who knows...

Product Compatible and additional computed target framework versions.
.NET net9.0-ios18.0 is compatible.  net10.0-ios was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0 86 7/30/2025
0.1.0 439 7/24/2025