Forum Discussion
Hello there!
Draft Mode should still allow you to grant or revoke add-on entitlements. As far as the unconsumed items, are you only having this issue with subscriptions? I would recommend checking your project against our documentation on subscriptions to make sure everything is setup properly.
If you are still having issues, or have additional questions on implementation, let me know!
Hi there,
Yes, I am able to subscribe/cancel/renew/expire subscription while in draft mode. Yes the issue is only with subscription "Type" property not set. As a workaround, I am comparing SKU from `PurchaseList` against my SKU:
//workaround
var subscriptionPurchases = msg.GetPurchaseList().Where(i => i.Sku == SKU_SUB_LOW_TIER || i.Sku == SKU_SUB_HIGH_TIER );
var consumablePurchases = msg.GetPurchaseList().Where(i => i.Sku != SKU_SUB_LOW_TIER || i.Sku != SKU_SUB_HIGH_TIER );
//expected (not working for subscription)
var subscriptionPurchases = msg.GetPurchaseList().Where(i => i.Type == ProductType.SUBSCRIPTION);
var consumablePurchases = msg.GetPurchaseList().Where(i => i.Type == ProductType.CONSUMABLE);From the link you provided, I guess you're suggesting subscription should be validated from server-to-server API at regular intervals (such as: app launch, sub ID change, expire timestamp change, etc) instead of depending on local check?
- GATORSAURU57 months agoMeta Employee
Thanks for clarifying! For now, I'd recommend continuing to use your workaround as that looks like a stable solution. If you have any additional questions on implementation, please feel free to reach out.
→ Find helpful resources to begin your development journey in Getting Started
→ Get the latest information about HorizonOS development in News & Announcements.
→ Access Start program mentor videos and share knowledge, tutorials, and videos in Community Resources.
→ Get support or provide help in Questions & Discussions.
→ Show off your work in What I’m Building to get feedback and find playtesters.
→ Looking for documentation? Developer Docs
→ Looking for account support? Support Center
→ Looking for the previous forum? Forum Archive
→ Looking to join the Start program? Apply here.