本文介绍了[C#] [UWP] [W10] - 从免费增值转为免费+在应用内购买的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近将我的W10应用程序移至Free + IAP而不是Freemium模型,我遇到了一些问题。



我跟着
本指南
,似乎与
关于CurrentApp.GetAppReceiptAsync的MSDN文档
,但在实际请求收据时,我看到
LicenseType 的不同值领域。



该示例正在寻找 / Receipt / AppReceipt [@ LicenseType ='Full'] / @ PurchaseDate 并且文档显示了可能的值:
LicenseType:Full ,如果用户购买了应用程序的完整版本。
试用,如果用户下载了该应用的试用版。


从发送给我应用收据的各个用户(在我的应用程序的WinStore缓存文件夹),我看到 试用
LicenseType
购买 。现在可以假设 购买
完整 对齐,但我仍然看到 试用


以下是我的一些示例我看到了(所有用户声称在免费增值时购买了应用程序):

< AppReceipt Id =" [redacted]" ;的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;试验"而purchaseDate = QUOT; 2015-12-14T19:37:05.692Z" /> 
< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;试验"而purchaseDate = QUOT; 2015-12-01T20:39:30.491Z" />
< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;试验"而purchaseDate = QUOT; 2015-10-23T17:03:49.486Z" />
< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;购买"而purchaseDate = QUOT; 2016-01-02T23:15:18.678Z" />



这是我自己的:



< AppReceipt Id =" [redacted]"的AppId = QUOT; 34508TravisLiew.Unstream_1ty85bq3gvwct"授权类型= QUOT;购买"而purchaseDate = QUOT; 2015-01-12T12:28:51.695Z" /> 



2015-01-12T12:28:51.695Z 是我创建应用的时候。



任何人都有这方面的经验吗?



任何帮助都将不胜感激,谢谢。




Travy92

解决方案

Recently moved my W10 app to Free + IAP instead of Freemium model and am having a few issues.

I followed this guide, which seems to align with the MSDN documentation on CurrentApp.GetAppReceiptAsync, however when actually requesting the receipt I am seeing different values for theLicenseType field.

The example is looking for /Receipt/AppReceipt[@LicenseType='Full']/@PurchaseDate and the documentation shows possible values:LicenseType: Full, if the user purchased the full version of the app.Trial, if the user downloaded a trial version of the app.

From various users sending me their app receipts (generated in the WinStore cache folders for my app), I'm seeingLicenseType values of Trial andPurchase. Now one can assume that Purchasealigns with Full, but I still see Trial for users who claim to have bought the app when it was in the freemium model.

Here are some examples I'm seeing (all users claim to have bought the app when freemium):

<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Trial" PurchaseDate="2015-12-14T19:37:05.692Z" />
<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Trial" PurchaseDate="2015-12-01T20:39:30.491Z" />
<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Trial" PurchaseDate="2015-10-23T17:03:49.486Z" />
<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Purchase" PurchaseDate="2016-01-02T23:15:18.678Z" />


And here is my own:

<AppReceipt Id="[redacted]" AppId="34508TravisLiew.Unstream_1ty85bq3gvwct" LicenseType="Purchase" PurchaseDate="2015-01-12T12:28:51.695Z" />


2015-01-12T12:28:51.695Z is when I created the app.

Anyone have experience doing something like this?

Any help would be appreciated, thanks.


Travy92

解决方案


这篇关于[C#] [UWP] [W10] - 从免费增值转为免费+在应用内购买的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 01:06