开发者

Connect to specific SSIDfor iPhone using QR code

开发者 https://www.devze.com 2023-03-22 05:09 出处:网络
There are several sites generating a QR code to connect to a specific wi-fi network for Android: e.g. http://www.barcode.com开发者_如何转开发/qrcode.html?view=qrcode

There are several sites generating a QR code to connect to a specific wi-fi network for Android: e.g. http://www.barcode.com开发者_如何转开发/qrcode.html?view=qrcode

I am looking for similar feature for iPhone. Any ideas?


There are multiple standards out there. The one you showed above, and the one proposed by ZXing (https://github.com/zxing/zxing/wiki/Barcode-Contents#wifi-network-config-android) are some examples.

iOS does not allow apps direct access to the Wi-Fi settings so the only way to achieve this would be to generate a provisioning profile for iOS and have the devices visit that (you will need to different barcoes for Android and for iOS). This website shows that being done: http://getonmywifi.com/signup/

Update: As of iOS 11, the built-in camera can recognize the Wi-Fi codes as proposed by ZXing and use them to connect to Wi-Fi.


At this point, it's not possible: Apple doesn't provide a public API to access wifi settings.


With the advent of iOS11 the stock camera app now recognises QR codes (including for joining a WiFi network). Safari can also recognize them in images - just tap and hold your finger over a QR code...

Also Apple's SDK has had support for reading 2D barcodes (QR,Aztec, PDF 417, Data Matrix) on iOS/OSX/tvOS for while - see: https://developer.apple.com/documentation/coreimage/cibarcodedescriptor

0

精彩评论

暂无评论...
验证码 换一张
取 消