chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
892 stars 187 forks source link

Checking if subscription is cancelled, but subscription period still active #195

Open djendacott opened 5 years ago

djendacott commented 5 years ago

Is it possible to find out if a user has cancelled their subscription?

Eg, a user signs up for a 7 day trial, immediately cancels it, but is continuing to use the app for the remainder of the free trial period. In this case we'd like to offer the user a discount to resubscribe.

dengue8830 commented 5 years ago

to identify if the user cancelled the subscription you have to

1) follow the apple guide to get notifications directly from the apple server 2) make a cron job in your server asking for validation of the lastest recipt

for discounts im not sure, but i think it is covered by the apple subscriptions documentation