2017-07-11 9 views
0

私のアプリはすでに店舗に入っています。 https://www.microsoft.com/store/apps/9n19jm5g8mz4UWPアプリ内購入GetAddOnInfo

ダッシュボードに3つのアドオンを作成しました。

Image

しかし、私は、次のコードから任意の情報を取得カントは、なぜ?

queryResult.Products.countは0です。

`

public async Task GetAddOnInfo() 
     { 
      if (context == null) 
      { 
       context = StoreContext.GetDefault(); 
      } 

      // Specify the kinds of add-ons to retrieve. 
      string[] productKinds = { "Durable" }; 
      List<String> filterList = new List<string>(productKinds); 

      StoreProductQueryResult queryResult = await context.GetAssociatedStoreProductsAsync(productKinds); 

      if (queryResult.ExtendedError != null) 
      { 
       // The user may be offline or there might be some other server failure. 
       return; 
      } 

      foreach (KeyValuePair<string, StoreProduct> item in queryResult.Products) 
      { 
       // Access the Store product info for the add-on. 
       StoreProduct product = item.Value; 

       // Use members of the product object to access listing info for the add-on... 
      } 
     } 

`

答えて

0

今のアドオンが来ます。 MSは遅れが1時間以上になると言う。

そして1時間後、私は店でそれらを見ました。そして、私はそれらをコードを使って得ることができると思います。

しかし、システム遅延のため、実際には有効になるのに24時間かかります。