Before apps use the camera or microphone on your iPhone, they’re required to request your permission and explain why they’re asking. For example, a social networking app may ask to use your camera so that you can take and upload pictures to that app. Apps are similarly required to request your permission to use various other hardware features, including Bluetooth® connectivity, motion and fitness sensors, and devices on your local network.
You can review which apps have requested access to these hardware features, and you can change their access at your discretion.
Go to Settings Manage information sharing with Safety Check on iPhone