There are already apps doing this, like Youtube Premium ($16 IAP, $12 on their website) and Dropbox ($12 IAP, $10 on their website).