iOS Content Blocker app - Subscription Cancelled Issues

I'm building an iOS Content Blocker app, but running into some diffuculty trying to figure out how to get the content blocker to stop working if the user cancels the subscription. Breaking my head over this, would really appricate the help!