A subscription can be restored if the user re-activated it during the Cancelling Renewal.
Apple/Google will let you know about the restorations via server2server notifications. Handle, store, and process them to build custom views with the restore subscription analytics.
Adapty does everything for you automatically. Simply install the SDK for your platform, open the Advanced dashboard, and you're ready to go!