Subscription can be restored if a user re-activated it during Cancelling Renewal.
Apple/Google will let you know about Restorations via server2server notifications. Handle, store and process them to build custom views with Restores Subscriptions analytics.
Adapty does everything for you automatically. Simple install SDK for your platform, open Advanced Dashboard and you're ready to go!