About app kill and grant permissions

I am working on mobile app. I want to kill my app cache and grant permission at every run. How Can I do that? I have used Grant Permission addons but its not working