Greetings, I am creating this post regarding the following topic => "Retrieve the expiration date of the current subscription".
I tried searching for the topic using the keywords "IAP," "Expire," "Date," "Subscription," but found nothing :/
Unity version => 6.1 (6000.1.9f1)
IAP version => 5.0.1
Context => Test conducted with an iOS device on TestFlight
Currently, I am using this code to retrieve the subscription expiration date after purchase validation:
`public DateTime GetSubscriptionDate(string id)
{
if (m_StoreController == null)
return DateTime.MinValue;
SubscriptionInfo subscriptionInfo = new SubscriptionInfo(id);
if (subscriptionInfo == null)
return DateTime.MinValue;
return subscriptionInfo.GetExpireDate();
}`
After several debug sessions, I noticed that I correctly reach return subscriptionInfo.GetExpireDate();, but the date returned is => 01/01/0001 00:00:00.
Is this because I am in a test environment (in testFlight)? If this is not normal, do you have any information that could help me, please?