Hello.
I recently implemented subscription functionality in my application using the Unity IAP library and encountered a problem. Based on the results of testing, I came to the conclusion that class subscriptionInfo incorrectly records data regarding the Free trial. The problem only affects Google Play Store. No matter what duration I set for the Free trial, the subscriptionInfo always showed that it did not exist, the isExpired method always returned false, the getFreeTrialPeriod method always returned zeros. At the same time, when you subscribe to the application, you can see that there is a Free trial.
At the same time, when you subscribe to the application, you can see that the Free trial is present. Upon further investigation, I realized that all data on subscriptions through Google Play is taken from the receipt, based on the data in the skuDetails class of the Google Play Bulling Library. Only in the Google Play Billing Library documentation this class, like all its methods, is obsolete and is no longer supported. (link to documentation below)
SkuDetails
Google now uses a new ProductDetails class for subscriptions
As a result, in the current latest version of the IAP library (4.12.2) you cannot use subscriptions with the Free trial.
Is Unity going to do something about this problem?