CurrentApp.LicenseInformation失败。微软拒绝发布该应用程序 [英] CurrentApp.LicenseInformation fails. Microsoft refuses to publish the App

查看:134
本文介绍了CurrentApp.LicenseInformation失败。微软拒绝发布该应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试发布一个新的应用程序,我有一些IAP。


问题是在发布应用程序之前,以下调用将失败:

 LicenseInformation license = CurrentApp.LicenseInformation; 
ListingInformation listingInfo = await CurrentApp.LoadListingInformationAsync();

然而,我测试并确保IAP逻辑使用CurrentAppSimulator工作

 await CurrentAppSimulator.ReloadSimulatorAsync(appSimulatorStorageFile); 
_license = CurrentAppSimulator.LicenseInformation;

显然,在提交应用程序之前,我更改了逻辑以使用CurrentApp。使用CurrentApp直到App发布,应用程序将收到以下错误:
System.Exception:Exception from HRESULT:0x803F6107 \\ n   
在Windows.ApplicationModel.Store.CurrentApp.get_LicenseInformation()


应用程序正常处理此问题并向用户显示IAP消息此时无法从商店检索。


然而,微软将此列为拒绝发布应用程序的原因。


同样,这是一个全新的应用程序(尚未发布),基于许多类似的问题,上述CurrentApp行为是预期的。


如何解决此问题并发布我的应用程序?

解决方案

Hi CompaNova



首先,如果您之前没有将应用程序发布到商店,我的意思是这个
是您第一次尝试将此应用程序发布到商店


值得注意的是,

CurrentAppSimulator
用于测试并确保您的应用程序的逻辑有效。但是如果您想使用

CurrentApp类
,您应首先将应用程序发布到商店。


我建议您可以在不使用CurrentApp API的情况下将应用程序发布到商店,并让商店为您的应用程序创建许可证
信息。您可以在代码中使用这些API并提交更新版本来完成你的应用



其次,如果您已将应用程序发布到商店:


我有一些建议:


  1. 确保您的应用程序在商店中成功发布。在您获取信息之前可能有24-48小时的延迟。
  2. 请根据您的WindowsStoreProxy在
    开发人员中心的Dashborad中配置您的IAP信息.xml。
  3. 您可以使用新的命名空间而不是使用

    Windows.ApplicationModel.Store
    。如果您的目标是Windows 10版本1607或更高版本,则可以使用
    Windows.Services.Store 实施应用内购买和试用。有关更多详细信息,请参阅此链接:

    使用Windows.Services.Store进行应用内购买和试用命名空间



最好的问候,



罗伊


I am trying to publish a new App and I have some IAPs in it.

The problem is that the following calls will fail until the App is published:

LicenseInformation license = CurrentApp.LicenseInformation;
ListingInformation listingInfo = await CurrentApp.LoadListingInformationAsync();

I did, however, test and ensure that the IAP logic works using the CurrentAppSimulator

await CurrentAppSimulator.ReloadSimulatorAsync(appSimulatorStorageFile);
_license = CurrentAppSimulator.LicenseInformation;

Obviously, before submitting the App I changed the logic to use CurrentApp. With the CurrentApp until the App is published the App will get the following errors: System.Exception: Exception from HRESULT: 0x803F6107\r\n   at Windows.ApplicationModel.Store.CurrentApp.get_LicenseInformation()

The App gracefully handles this and displays a message to the user that the IAP cannot be retrieve from the store at this time.

Microsoft, however, cited this as a reason why they refused to publish the App.

Again, this is a brand new App (has never been published yet) and based on many similar questions the above CurrentApp behavior is expected.

How can I resolve this issue and get my App published?

解决方案

Hi CompaNova

First, if you haven’t published your app to the store before, I mean this is the first time you try to publish this app to store:

It is noticed that, CurrentAppSimulator is used for test and ensure the logic of your app works. But if you want to use CurrentApp Class, you should publish your app to the store first.

I suggest that you could publish your app to the store without using CurrentApp APIs and let the store create the license information for your app. The you could use these APIs in your code and submit an update version to complete your app

Second, if you have published the app to the store:

I have some suggestions for you:

  1. Make sure your app is published in the store successfully. It may have 24-48 hours delay before you could get the information.
  2. Please config your IAP information in the Dashborad of Dev Center based on your WindowsStoreProxy.xml.
  3. There is a new namespace you could use instead of using Windows.ApplicationModel.Store . If you are targeting Windows 10 version 1607 or higher, you could use Windows.Services.Store to implement in-app purchases and trials. For more detail information, you could refer this link: In-app purchases and trials using the Windows.Services.Store namespace.

Best regards,

Roy


这篇关于CurrentApp.LicenseInformation失败。微软拒绝发布该应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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