Oscore.Maui.InAppReviews
1.1.0
Prefix Reserved
dotnet add package Oscore.Maui.InAppReviews --version 1.1.0
NuGet\Install-Package Oscore.Maui.InAppReviews -Version 1.1.0
<PackageReference Include="Oscore.Maui.InAppReviews" Version="1.1.0" />
paket add Oscore.Maui.InAppReviews --version 1.1.0
#r "nuget: Oscore.Maui.InAppReviews, 1.1.0"
// Install Oscore.Maui.InAppReviews as a Cake Addin #addin nuget:?package=Oscore.Maui.InAppReviews&version=1.1.0 // Install Oscore.Maui.InAppReviews as a Cake Tool #tool nuget:?package=Oscore.Maui.InAppReviews&version=1.1.0
Maui.InAppReviews
NuGet package that implementing native In-App Reviews for MAUI with debugging capabilities.
In-app reviews supported on Android 5.0 (API level 21) & iOS 10.3+ & Windows devices.
It can return ReviewStatus.NotSupported, in this case you can use AppStoreInfo to open review page in the store.
Usage
- Add NuGet package to your project:
<PackageReference Include="Oscore.Maui.InAppReviews" Version="1.0.0" />
- Add the following to your
MauiProgram.cs
CreateMauiApp
method:
builder
.UseMauiApp<App>()
+ .UseInAppReviews()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
ReviewStatus status = await InAppReview.Current.RequestAsync();
Links
- https://developer.android.com/guide/playcore/in-app-review
- https://github.com/jamesmontemagno/StoreReviewPlugin
- Requesting Reviews with iOS 10.3’s SKStoreReviewController
- In-app reviews for your Android apps
Android code shrinker (Proguard & r8)
If you use the plugin with Link SDK assemblies only
/Link all
, you have to do the following:
- Create a
proguard.txt
file in your android project and add the following:
-keep class com.google.android.play.core.common.PlayCoreDialogWrapperActivity
-keep class com.google.android.play.core.review.** { *; }
-keep class com.google.android.play.core.tasks.** { *; }
- Include it to your project
- Properties > Build Action > ProguardConfiguration
- Go to you Android project options and set your
Code Shrinker
toProGuard
orr8
Testing & Debugging issues
iOS
- You cannot submit a review on iOS while developing, but the review popup dialog displays in your simulator/device.
- However, when you download the app from Testflight, the popup dialog does not display at all, as mentioned here:
When you call this method while your app is still in development mode, a rating/review request view is always displayed so that you can test the user interface and experience. However, this method has no effect when you call it in an app that you distribute using TestFlight."
Android
- Unlike iOS, you cannot see the review 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.
- Occasionally, some devices may not show the popup at all as seen here. One way to test whether your device is affected by it, is by downloading this game that uses v3.1 of this nuget, target SDK version 30, target framework v11.0 and win the game once to see the popup. Additionally, you can debug the error using adb locat, as you can see here
- The most common issue/crash type is that developers release the app in the release configuration but they only test in the debug configuration. They do not realize that they have set Linker behavior to
Link SDK assemblies only
/Link all
, and did not follow the proguard steps mentioned above
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android35.0 is compatible. net9.0-ios18.0 is compatible. net9.0-maccatalyst18.0 is compatible. net9.0-tizen8.0 is compatible. net9.0-windows10.0.19041 is compatible. |
-
net9.0
- Microsoft.Maui.Controls (>= 9.0.0)
-
net9.0-android35.0
- Microsoft.Maui.Controls (>= 9.0.0)
- Xamarin.AndroidX.Activity.Ktx (>= 1.9.2.1)
- Xamarin.AndroidX.Collection.Ktx (>= 1.4.3.1)
- Xamarin.Google.Android.Play.Review.Ktx (>= 2.0.1.11)
-
net9.0-ios18.0
- Microsoft.Maui.Controls (>= 9.0.0)
-
net9.0-maccatalyst18.0
- Microsoft.Maui.Controls (>= 9.0.0)
-
net9.0-tizen8.0
- Microsoft.Maui.Controls (>= 9.0.0)
-
net9.0-windows10.0.19041
- Microsoft.Maui.Controls (>= 9.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.