question

vinzetude avatar image
vinzetude asked

Subscription expiration

Hi, Do we need internet to know if a subscription has expired in production mode ? It seems not the case with Amazon Test Client.
iap
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vinzetude avatar image
vinzetude answered
Will getPrice() method on a subscription retrieve the price with it contract type like : $10 / month
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dixith@Amazon avatar image
Dixith@Amazon answered
Active subscriptions are denoted by a null end date in the receipt. Expired subscriptions are determined by a non-null end date on the receipt. This is your app's responsibility to manage expired subscriptions. If you are managing locally in the app, you do not need internet connection. In Live environment getPrice() returns the localized price of the item as a String. The price will include the currency symbol and be formatted appropriately based on the locale, i.e. in US $X.YZ and in France X,YZ€. Please go through the below documentation for more information on this. https://developer.amazon.com/sdk/in-app-purchasing/documentation/quick-start.html#Step%205
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

vinzetude avatar image
vinzetude answered
So getPrice() only retrieve the price of a subscription : "$X.YZ" not "$X.YZ / month". I have to had the "per month" my self in my view. Message was edited by: vinzetude
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Yes.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.