Problem with Unity IAP android subscription

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 ??

6189537--678633--SubscriptionPauseLength.PNG

I hope someone can help me.
Thanks

I have not tested pausing subscriptions. However receipt updates can take more than a day sometimes. These updates come via Google, we (Unity IAP) have no control over the timing. So testing with the 5-10-15 minute test subscription times might not be possible. It looks like you are doing it correctly and checking in your code correctly, also. Keep in mind that you can only check at the beginning of the game, when IAP initializes.

1 Like

Thanks a lot, I am checking this IAP info only at the beggining of the game so I will check it in a real situation (not test) and check if the receipt are updating.
In test mode, sometimes works good but most of the time it appears as subscribed when is paused.

I appreciated your answer.

Cheers.