I need to programatically share WiFi credentials via bluetooth with another device. My plan is first to read the credentials and then send them, but I can't find any documentation on how to read both WiFi and password. Other methods of authenticating the other device are welcome
Asked
Active
Viewed 694 times
0
-
Is the other bluetooth device and iOS device? – Alexander May 15 '20 at 19:12
-
You can, but only if you're a member of the [MFi program](https://developer.apple.com/programs/mfi/). This is pretty sensitive information, so they're trying to restrict it to trusted devs only. https://stackoverflow.com/a/26414252/3141234 – Alexander May 15 '20 at 19:15
-
@Alexander-ReinstateMonica it is another device that I'm developing – Pastre May 15 '20 at 19:37
-
@Alexander-ReinstateMonica Do I need the MFi certificate to publish or can I develop while I get the certificate? – Pastre May 15 '20 at 19:43
-
No clue. You'll have to look into it – Alexander May 15 '20 at 20:11
-
Ok, thanks for your time :) – Pastre May 15 '20 at 20:25
-
@Pastre Were you able to figure this out? – tunafish24 Jan 20 '23 at 07:06
-
1@tunafish24 just posted the answer :) – Pastre Jan 23 '23 at 15:16
1 Answers
1
Figured it out: that is only possible for devices enrolled with Mfi (Made for iPhone). We ended up asking the user to input WiFi credentials in the app and testing those credentials by joining the new Wifi networking and pinging Google. If they're good, we store them on the Keychain and share it with our other device.
I had to ask an Apple Engineer on WWDC Engineering Hours to get this answer, btw :)

Pastre
- 684
- 8
- 17