最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - UNO platform Google Play update check - Stack Overflow

programmeradmin0浏览0评论

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:

`IAppUpdateManager _updateManager = AppUpdateManagerFactory.Create(Context); var updateListener = new AppUpdateSuccessListener(tsc);

AndroidTask updateTask = _updateManager.AppUpdateInfo;

updateTask.AddOnSuccessListener(updateListener); updateTask.AddOnFailureListener(updateListener);`

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 tried all the steps I outlined and expected the update check to run successfully without raising an exception.

发布评论

评论列表(0)

  1. 暂无评论