I need to manage app-level permissions that are device-specific. there are 4 permissions:
- faceID login
- camera
- storage
- location
What I need to develop is, if I enable-disable switches on these permissions, it should be reflected on app settings too. for eg. If I have disabled camera permission; it should show disable in settings-> privacy -> camera -> App (disabled) Is this possible?
Current development: I have enabled it all by default. and stored it in UserDefaults. Whenever a user wants to access the feature, I check the value stored in UserDefault. Allow if enabled and show a message if disabled. But disabled doesn't mean it's disabled from the device settings. I hope I've explained my question properly :/