I am using google in-app billing v-3 to implement Subscription.
My Subscription has one week Trail period and UI displays "Avail A Week Free" View.
If the user Subscribes and cancels for any reasons, I need to display "UpGrade" View.
As far as I googled, I learned that if users cancel's subscription while in the period of active subscription, INAPP_PURCHASE_DATA_LIST autoRenewing flag will return false.And after the subscription period ends getPurchase() could return empty.
In this scenario how could I know which UI to display, hence getPurchase() will return empty for both, when the subscription expires and when User has not Subscribed.
If you have a subscription with an app and it's removed from Google Play, your future subscription will be canceled. Your past subscriptions can't be refunded, with some exceptions as specified in this article or in Google Play's refund policies.
Important: When you uninstall the app, your subscription won't cancel. On your Android device, go to your subscriptions in Google Play. Select the subscription you want to cancel. Tap Cancel subscription.
To view and manage your Android subscriptions, open the Google Play Store app on your device, then tap the menu button (the three horizontal lines in the top left), then choose Subscriptions. You'll see a list of all the subscriptions, such as Google Play Music, handled through Google.
Since any user can use trial only once you can check getPurchaseHistory() and see if the user has ever been subscribed to your subscription. If he was - you need to show "UpGrade" view, otherwise, you can show "Avail A Week Free" View.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With