生产中的CurrentApp.GetAppReceiptAsync在某些情况下失败 [英] CurrentApp.GetAppReceiptAsync in production fails in some situations

查看:80
本文介绍了生产中的CurrentApp.GetAppReceiptAsync在某些情况下失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中调用以下行时,用户会收到异常。  (这是正在制作中,针对购买的应用对CurrentApp进行编码。)

 var receipt = await CurrentApp.GetAppReceiptAsync(); 

以下是例外:


来自HRESULT的异常:0x80072EF1


这仅适用于触发的某些操作一旦用户已经在应用程序中,就会调用此调用。  当应用程序首次加载时,也会调用同一行代码,然后它就没有任何问题。  有什么想法吗?  谢谢。

解决方案

您能否提供有关异常和更多代码的更多详细信息?



Users get an exception when the following line is called inside my app.  (This is in production, coded against CurrentApp for an app that is purchased.)

var receipt = await CurrentApp.GetAppReceiptAsync();

And here is the exception:

Exception from HRESULT: 0x80072EF1

This only happens for certain actions that trigger this call once the user is already in the app.  This same line of code is also called when the app first loads and it doesn't have any problems then.  Any ideas?  Thanks.

解决方案

Can you provide some more details on the exception and some more code?


这篇关于生产中的CurrentApp.GetAppReceiptAsync在某些情况下失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆