Q:

iOS - Get current Wifi credentials (SSID & password)

I recently bought a smart personal scales including an iOS-App.
While doing the wifi-setup of the scales on my iPhone, iOS asked me to allow this App to hand on my credentials of my current Wifi-network, I was logged in. I was looking for this feature quite intensive but without success, because I'd also like to just hand it on to another device to connect it to Wifi.
How can I do this in my App to fetch the Wifi credentials?

A:

I believe this functionality is built into the HomeKit / MFI frameworks and it not a usable API. 
See the documentation here
So you can use the API to look for devices that aren't currently configured and configure them on your device. The underlying frameworks may share additional information but you wouldn't be able to request this information from another application as there isn't any public methods for it and it would definately be a security risk anyway. 

