Hello :) I'm programming with Amazon In-App purchase for the first time, so please bare with me. I just want to know, where to set subscription period for testing purposes? ( I belive that in live enviroment, subscription period is set on amazon developers page ? ). So I've subscribed to services in my application and I've checked "startDate" which is correct. "endDate" is null ( which means subscription is valid at that point of time , i belive ). But I would like to know where to set subscription period for testing purposes? Also I would like to know where to set trial period for my application? So let's say, user has access to all application services for 1 month, and after that time, he/she needs to subscribe in order to have further access to my apps services. Thank you, for help and have a great day.
The startDate and endDate are represented as time in milliseconds; you can call java.util.Date(timeInMillis) to convert the values into a date object. A endDate of 'null' indicates that the subscription for this receipt is still active. If the receipt is for an expired subscription the endDate would reflect the date the subscription expired, or the date it was cancelled by Amazon customer support. You can not test the code, when the in-app subscription item's subscription's over scenario in the testing environment. In Application NAME > In-App Items > Title NAME > Subscription periods > Free trial . You can choose from the drop down options. You can also refer to SampleIAPSubscriptionApp(
https://developer.amazon.com/sdk/thank-you.html) Application code, where he has explained How to have a listener attached to your activity and Through BasePurchasingObserver how to know whether subscription is active or not.