You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to add subscriptions to my app. And I have problems while checking if the user purchases a subscription. I have 2 problems:
Method CheckIfUserHasSubscriptionAsync() from documentation always return empty array after I bought a subscription (I tested either with and without trial). I can see that product has property "IsInUserCollection":true when calling method GetSubscriptionProductAsync(), but appLicense.AddOnLicenses inside CheckIfUserHasSubscriptionAsync() is always empty.
Method GetSubscriptionProductAsync() returns strange response with 1 extra sku.
In the documentation in the code comment it is written:
// Check if the first SKU is a trial and notify the customer that a trial is available.
// If a trial is available, the Skus array will always have 2 purchasable SKUs and the
// first one is the trial. Otherwise, this array will only have one SKU.
But actually I have always 3 purchasable SKUs after purchasing a product. And weird thing is that SKU that has the property "IsInUserCollection": true doesn't have any SubscriptionInfo:
We are changing the way we track issues filed from our documentation pages: please see this blog post for more details. The Microsoft Store documentation has been updated several times since your issue was reported, and there's a good chance your problem has been addressed. Right now, this issue is being closed but if you feel it is still valid and has not been addressed, please re-open it with any more available information. Please note that if you question is more general and not related to documentation, Microsoft Q&A is a great way to get questions answered.
Hi, I'm trying to add subscriptions to my app. And I have problems while checking if the user purchases a subscription. I have 2 problems:
CheckIfUserHasSubscriptionAsync()
from documentation always return empty array after I bought a subscription (I tested either with and without trial). I can see that product has property"IsInUserCollection":true
when calling methodGetSubscriptionProductAsync()
, butappLicense.AddOnLicenses
insideCheckIfUserHasSubscriptionAsync()
is always empty.GetSubscriptionProductAsync()
returns strange response with 1 extra sku.In the documentation in the code comment it is written:
// Check if the first SKU is a trial and notify the customer that a trial is available.
// If a trial is available, the Skus array will always have 2 purchasable SKUs and the
// first one is the trial. Otherwise, this array will only have one SKU.
But actually I have always 3 purchasable SKUs after purchasing a product. And weird thing is that SKU that has the property
"IsInUserCollection": true
doesn't have anySubscriptionInfo
:For the case when a product doesn't have a trial it has 2 skus, but with the same problem as mentioned above:
The text was updated successfully, but these errors were encountered: