ObservePermissionChanges

Observes the change in the permission state and automatically downloads the attachment once the permission has been granted.