Google Play update check #19461
Labels
difficulty/tbd
Categorizes an issue for which the difficulty level needs to be defined.
kind/bug
Something isn't working
triage/untriaged
Indicates an issue requires triaging or verification
Current behavior
I have been unsuccessful in my attempts to implement app store update check with Google Play.
I created a mock project, added
<PackageVersion Include="Xamarin.Google.Android.Play.Core" Version="1.10.3.16" />
To Directory.Packages.props
I added
<PackageReference Include="Xamarin.Google.Android.Play.Core" />
To .csproj
In Google Play Console, I linked a Google Cloud project and enabled Play Integrity API. I created a service account to go along with it.
I published the app on the Closed testing and uploaded subsequent version on internal sharing. I tried uploading both signed and unsigned versions of the app. I then download the app from the Google Play app store and run it to see the logs.
In code, I attempt to check for updates using:
I get a response at OnFailure(Exception ex) with:
Install Error(-3): The API is not available on this device.
I tried clearing the Google Play cache but that did not help.
I would appreciate any tips on how to make this work. Thank you.
I attached the mock project I used to replicate and debug this issue.
Expected behavior
Update check should run without raising an exception
How to reproduce it (as minimally and precisely as possible)
Create a project in Google Play and upload a build from the provided project. Publish project to closed testing track and share any subsequent update on Internal sharing for instant approval without review. Observe the logs and the exception that is raised on update check.
kahuaUpdateTest.zip
Workaround
No response
Works on UWP/WinUI
No
Environment
Uno.UI / Uno.UI.WebAssembly / Uno.UI.Skia
NuGet package version(s)
No response
Affected platforms
Android
IDE
Visual Studio 2022
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: