C# 购买后的应用内购买问题
我发现WP8 SL上的IAP有一个奇怪的行为,一旦从IAP任务中完成了购买,等待请求后面的代码就根本不会运行,它会以某种方式跳过它,我有一个try-catch,但根本不会抛出任何异常。如果你能看一看,我将不胜感激。如果您需要更多信息,请告诉我C# 购买后的应用内购买问题,c#,silverlight,windows-phone-8,in-app-purchase,async-await,C#,Silverlight,Windows Phone 8,In App Purchase,Async Await,我发现WP8 SL上的IAP有一个奇怪的行为,一旦从IAP任务中完成了购买,等待请求后面的代码就根本不会运行,它会以某种方式跳过它,我有一个try-catch,但根本不会抛出任何异常。如果你能看一看,我将不胜感激。如果您需要更多信息,请告诉我 private async void Button_Click_1(object sender, RoutedEventArgs e) { var listing2 = await CurrentApp.LoadListingInf
private async void Button_Click_1(object sender, RoutedEventArgs e)
{
var listing2 = await CurrentApp.LoadListingInformationAsync();
var noads = listing2.ProductListings.FirstOrDefault(p => p.Value.ProductId == "RemoveAds" && p.Value.ProductType == ProductType.Durable);
try
{
await CurrentApp.RequestProductPurchaseAsync(noads.Value.ProductId, false);
//nothing happen from here
MessageBox.Show("Done");
}
catch (Exception ex)
{
MessageBox.Show(ex.InnerException.Message);
}
}
是否设置了断点或等待messagebox显示消息?我在messagebox上设置了断点,但它只是在购买请求后跳过它。至于等待留言箱,我不明白你的意思。