0

I was wondering how can I determine though code, if a user did buy our App through the Windows Store.

Because we have a payed App, and I found it for download on eg. FileDir as an .xap file. Fully working.

We are not working with in-app purchases or trial version, you have to pay for it.

4

1 回答 1

0

如果您不是原始开发者(使用相同帐户登录),通过 SD 卡安装或下载 XAP 仍然需要您购买应用程序。如果您过去已经购买过它,它不会再次询问,因为它会通过 Windows Phone Store 进行验证。

那是你的问题吗?

如果您询问如何从一个应用程序检查是否已购买另一个应用程序,最好的选择是检查已安装应用程序的列表: InstallationManager.FindPackagesForCurrentPublisher 方法

要检查许可证是否仍然有效,您可以签入代码:

bool hasBeenBought = Windows.ApplicationModel.Store.CurrentApp.LicenseInformation.IsActive;
于 2014-04-02T09:00:29.257 回答