Hello Everyone
I’m stuck with Unity IAP (Android) trying to get Subscription status
I got almost everything configured into Google Console, I am using develop status for purchasing tests.
When I purchase a subscription, it displays into Google Play/Subscription section without any problem but if I update my subscription in this section to paused, if I restart my app it won’t be reflected this new status into my app using Unity IAP.
I mean, it current detecting when I purchase my subscription, and when I cancelled it but I can not detect when I paused this subscription.
Currently I was using this code to retrieve the subscription information:
SubscriptionInfo subInfo = new SubscriptionManager(CodelessIAPStoreListener.Instance.GetProduct("my_subscription_identifier"), null).getSubscriptionInfo( );
if(subInfo != null) {
if(subInfo.isSubscribed( ) == Result.True) {
DataManager.isSubscribed = true;
} else {
SubscriptionExpired( );
}
}
In my game, I always get isSubscribed() = false when no subscription were bought or cancelled and true if the subscription is active or paused (but according to Google Play Docs when is Paused it must be false).
Is there a way to know if the subscription is Paused ??
I hope someone can help me.
Thanks