Repository navigation
Description
Current behavior 🐛
The GooglePlay UnoFeature (Uno.WinUI.GooglePlay), which is required for StoreContext.RequestRateAndReviewAppAsync() on Android, depends on Xamarin.Google.Android.Play.Core 1.10.3.21. That package binds the monolithic com.google.android.play:core 1.10.3 library, which Google stopped updating in 2022 and has since split into per-feature libraries (play:review, play:app-update, play:asset-delivery, play:feature-delivery).
Play Console flags that library in any app targeting API 34+:
Update your Play Core Maven dependency to an Android 14 compatible version! Your current Play Core library is incompatible with targetSdkVersion 34 (Android 14), which introduces a backwards-incompatible change to broadcast receivers to improve user security.
Play Console also says that 90 days after the release, you can no longer publish versions containing this SDK version to production or open testing. Google Play requires new releases to target API 34+, and the current Uno templates target 35/36. So an app that follows the Store Context docs and adds GooglePlay gets this warning, and later the publishing block.
The dependency is still 1.10.3.21 on master (src/Directory.Packages.props) and in the latest published package (Uno.WinUI.GooglePlay 7.0.0-dev.1446).
Expected behavior 🎯
Uno.UI.GooglePlay depends on the split review library, Xamarin.Google.Android.Play.Review (com.google.android.play:review 2.x), and not on Xamarin.Google.Android.Play.Core.
StoreContextExtension only uses the review API (ReviewManagerFactory, FakeReviewManager, ReviewInfo), and the split library has all of those under the same Xamarin.Google.Android.Play.Core.Review[.Testing] namespaces. Per Google's migration guide, the only API change is that tasks become Play Services tasks: Xamarin.Google.Android.Play.Core.Tasks.{Task,IOnCompleteListener} → Android.Gms.Tasks.{Task,IOnCompleteListener} (from Xamarin.GooglePlayServices.Tasks).
How to reproduce it (as minimally and precisely as possible) 🔬
- Create an Uno app targeting
net10.0-androidwithtargetSdkVersion34+. - Add
GooglePlayto<UnoFeatures>and callStoreContext.GetDefault().RequestRateAndReviewAppAsync(). - Upload the AAB to any Play Console track. The release shows the Play Core / Android 14 SDK warning above.
You can also see the dependency without uploading anything: dotnet nuget why / obj/project.assets.json lists Xamarin.Google.Android.Play.Core 1.10.3.21 coming from Uno.WinUI.GooglePlay.
Workaround 🛠️
Don't use the GooglePlay feature. Reference Xamarin.Google.Android.Play.Review directly and call ReviewManagerFactory.Create(activity) → RequestReviewFlow() → LaunchReviewFlow(activity, info) from app code, awaiting the tasks with Android.Gms.Extensions.TasksExtensions.AsAsync.
Renderer 🎨
- Skia
- Native
Affected platforms 📱💻🖥️
Android
Uno.Sdk version (and other relevant versions) 📦
Uno.Sdk 6.8.0-dev.45. Also reproduces on master / Uno.WinUI.GooglePlay 7.0.0-dev.1446 (Xamarin.Google.Android.Play.Core 1.10.3.21).
IDE version 🧑💻
N/A (CLI build)
Anything else we need to know? 💬
Version note for whoever picks this up, related to #24535: we hit this while choosing a version of Xamarin.Google.Android.Play.Review for an app on Uno.Sdk 6.8. Binding 2.0.2.5 adds only the review, Play Core Common, Basement, Tasks and Build.Download packages. 2.0.2.6+ pulls Play Services Basement versions that require AndroidX Fragment ≥ 1.8.9, which conflicted (NU1605) with the Xamarin.AndroidX.Activity version the Uno.Sdk manifest supplies. So the version picked here should match the Uno.Sdk AndroidX manifest.
Activity
docs(review): say why spec 012 doesn't use Uno's StoreContext review API
Xiaoy312 commentedon Nov 24, 2026
Fix is up in #26695 (draft):
Uno.WinUI.GooglePlaynow depends onXamarin.Google.Android.Play.Review2.0.2.10 instead ofXamarin.Google.Android.Play.Core.One correction to the issue text: in the Play.Review binding the review types are under
Google.Android.Play.Core.Review[.Testing], notXamarin.Google.Android.Play.Core.Review. Also,Android.Gms.Tasksdefines its ownCancellationToken, so the PR uses the full names for the Gms task types instead of ausing.Backport notes
release/stable/7.0: the add-in is identical to master, so the commit should cherry-pick cleanly. The 7.0 Uno.Sdk already pins AndroidX.Activity 1.13.0.1, Fragment 1.9.0 and Collection 1.6.0.1, which matches what Play.Review 2.0.2.10 pulls in (via GooglePlayServices.Basement 118.10.0.3). No SDK change is needed.release/stable/6.x(6.5–6.7) is a manual port, not a cherry-pick:The add-in's csproj sets Play Core per TFM, inline (
net9.0-android→ 1.10.3.14,net10.0-android→ 1.10.3.18), instead of throughDirectory.Packages.props.StoreContextExtension.cshas also changed since.The 6.x Uno.Sdk pins AndroidX.Activity 1.10.1.2 (and Collection 1.5.0.2), which limits the Play.Review version:
So a 6.x backport should either use 2.0.2.5, or also raise the 6.x SDK's AndroidX pins. Raising the pins changes every Android app on that SDK, so 2.0.2.5 is the safer choice for a stable branch. It ships
net8.0-android34.0andnet10.0-android36.0assets, sonet9.0-androiduses the net8 assets.Xamarin.Google.Android.Play.Coretransitively throughUno.WinUI.GooglePlay, for example for in-app updates, will need to reference the matching split package themselves (Xamarin.Google.Android.Play.App.Update, etc.).fix(android): Use Play Review instead of deprecated Play Core