Skip to content

[Android] Uno.WinUI.GooglePlay depends on the deprecated Play Core 1.10.3, which Play Console flags as incompatible with targetSdk 34+ #24948

In review

Description

@kazo0

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) 🔬

  1. Create an Uno app targeting net10.0-android with targetSdkVersion 34+.
  2. Add GooglePlay to <UnoFeatures> and call StoreContext.GetDefault().RequestRateAndReviewAppAsync().
  3. 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

  1. added
    7.0
    on Oct 14, 2026
  2. removed
    7.0
    on Oct 29, 2026
  3. self-assigned this
    on Nov 24, 2026
  4. Xiaoy312 commented on Nov 24, 2026

    @Xiaoy312
    Contributor

    Fix is up in #26695 (draft): Uno.WinUI.GooglePlay now depends on Xamarin.Google.Android.Play.Review 2.0.2.10 instead of Xamarin.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], not Xamarin.Google.Android.Play.Core.Review. Also, Android.Gms.Tasks defines its own CancellationToken, so the PR uses the full names for the Gms task types instead of a using.

    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 through Directory.Packages.props. StoreContextExtension.cs has 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:

        Play.Review → Basement → AndroidX it requires Works with the 6.x SDK?
        2.0.2.5 118.7.1.1 Fragment 1.8.8.1, Collection 1.5.0.3 ✅ (matches what the reporter saw)
        2.0.2.6 118.9.0.1 Fragment 1.8.9.1 → Activity ≥ 1.10.1.3 ❌ NU1605 against Activity 1.10.1.2
        2.0.2.10 118.10.0.3 Fragment 1.9.0 → Activity.Ktx 1.13.0.1, Collection 1.6.0.1 ❌
      • 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.0 and net10.0-android36.0 assets, so net9.0-android uses the net8 assets.

    • On every branch: apps that got Xamarin.Google.Android.Play.Core transitively through Uno.WinUI.GooglePlay, for example for in-app updates, will need to reference the matching split package themselves (Xamarin.Google.Android.Play.App.Update, etc.).
  5. added a commit that references this issue on Nov 24, 2026
    de064b3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions