How to revoke permission on Android and iOS?


In my project I have a screen to manage application permissions. Example:
I request geolocation, then the user wants to withdraw the permission. He doesn’t have to go to phone settings, but he can do it directly from the app.

I use the diagnostic plugin to request the permissions, but I can’t find anything to cancel them.

Do you have any ideas?

thank you in advance