- Home /
 
Check IAP Subscription Product Status Android
In Apple store, I have successfully implemented subscription and on each launch of application, I have checked activation status of Subscription.
Now same thing, I want to implement for Android Play Store and in this I stuck at each time Subscription status check call.
Here is my Apple store checking related code so something similar I expect for Android Play store:
     public void OnInitialized (IStoreController controller, IExtensionProvider extensions)
     {
         Debug.Log ("OnInitialized: PASS");
 
         m_StoreController = controller;
         m_StoreExtensionProvider = extensions;
 
         CheckIfSubscriptionIsActive ();
 
     }
 
     public void CheckIfSubscriptionIsActive ()
     {
         ConfigurationBuilder builder = ConfigurationBuilder.Instance (StandardPurchasingModule.Instance ());
 
         IAppleConfiguration appleConfig = builder.Configure<IAppleConfiguration> ();
 
         if (!string.IsNullOrEmpty (appleConfig.appReceipt)) {
 //            Debug.Log (appleConfig.appReceipt);
             appReceipt = appleConfig.appReceipt;
             StartCoroutine (CheckForSubscriptionStatus ());
 
 //            var receiptData = System.Convert.FromBase64String (appleConfig.appReceipt);
 //            AppleReceipt receipt = new AppleValidator (AppleTangle.Data ()).Validate (receiptData);
 //            foreach (AppleInAppPurchaseReceipt productReceipt in receipt.inAppPurchaseReceipts) {
 //                Debug.Log ("PRODUCTID: " + productReceipt.productID);
 //                Debug.Log ("PURCHASE DATE: " + productReceipt.purchaseDate);
 //                Debug.Log ("EXPIRATION DATE: " + productReceipt.subscriptionExpirationDate);
 //                Debug.Log ("CANCELDATE DATE: " + productReceipt.cancellationDate);
 //            }
         }
     }
 
               By checking Subscription product status, I can deliver benefit of that product purchase to actual user. So please give some suggestion regarding this.
I have already gone through this page but still not sure what will be exact code for android? How do I track auto-renewing subscriptions?
Your answer
 
             Follow this Question
Related Questions
UnityIAP Subscription Purchase 0 Answers
Unity IAP Subscription Doubts 0 Answers
Process Purchase Event get called on each App launch - iOS 0 Answers
Unity IAP not reliable in sandbox when restoring subscription after app deleted and re-installed 0 Answers
how to implement IAP subscription??? 0 Answers