【发布时间】:2016-02-08 13:19:39
【问题描述】:
我正在为 Windows 8 开发一个应用程序。一段时间后,我将项目更新到 Windows 8.1 并收到警告,即来自 @987654321 的方法 CurrentAppSimulator.RequestProductPurchaseAsync(String, Boolean) @ 已弃用。所以我开始使用它的 CurrentAppSimulator.RequestProductPurchaseAsync(String) 版本,由于某种原因,购买模拟对话框根本没有出现。 Here is a dialog I was getting using deprecated version of the method.
我以前从不需要 WindowsStoreProxy.xml,但以防万一我检查了它并将 IsTrial 属性设置为 false - 但是,对话框没有显示, 和新方法 CurrentAppSimulator.RequestProductPurchaseAsync(String) 的答案总是返回 ProductPurchaseStatus::NotPurchased。
也许有人知道问题出在哪里?
【问题讨论】:
-
如果我能明白为什么这被标记为
simulation,我会被诅咒的。这其中的哪些方面与模拟相关或特定于模拟? -
这是微软提供的一个模拟应用内产品购买的类(CurrentAppSimulator)。是的,也许标签与我的要求不太相关,我会改变它:)
标签: windows-8 windows-store-apps in-app-purchase windows-8.1 simulation