Hi @Muhammed Işık ,
Thanks for reaching out.
When you call GetAppLicenseAsync() and check StoreAppLicense.AddOnLicenses, the collection represents the add-on licenses that are currently valid for the user. In other words, it typically contains the entitlements that the user can actively use. Expired or cancelled subscriptions are generally not included in this collection.
Because of that behavior, one possible approach to determining whether a subscription is active is to check whether the corresponding add-on ID exists in AddOnLicenses. If the add-on appears in the collection, it would normally indicate that the Store currently considers that entitlement valid for the user.
One small thing to keep in mind is that license information can occasionally be cached locally by the Store. For example, right after a purchase or when a device has been offline, the license state might take a short moment to sync. In those cases, calling GetAppLicenseAsync() again after the Store refreshes the license data may help ensure you are working with the most up-to-date license information.
So one way you might structure the check is:
- Call
GetAppLicenseAsync() - Check whether your subscription add-on ID exists in
AddOnLicenses - If it appears in the collection, treat the subscription as currently active
If you found my response helpful or informative in any way, I would greatly appreciate it if you could follow this guidance provide feedback.
Thank you.