I’m having issues with the iOS ParticleSetup library.
The setup process starts OK. I click “Ready” and get passed the first screen. Second screen comes up telling me to select the device from WiFi and then come back. I select the device from WiFi, but when I return to the app nothing happens.
The only errors I see in console are things like:
NSURLConnection finished with error - code -1005
TIC Read Status [2:0x0]: 1:57
TIC TCP Conn Failed [5:0x283429500]: 1:50 Err(50)
Task <FC02FA32-46C3-4D89-AC6D-35A551F8719A>.<0> HTTP load failed (error code: -1009 [1:50])
NSURLConnection finished with error - code -1009
As far as I’m aware I’ve followed the setup instructions correctly. I’ve got the Pods file my bridging header setup and referenced in the build settings.
The above errors are related to an iOS 12 bug. Closing and reopening an app produces these errors. Along with:
[BoringSSL] nw_protocol_boringssl_error(1584) [C2.1:2][0x103333150] Lower protocol stack error: 53
Actual cause of issue
The current version (0.9.0) of the ParticleSetup iOS pod uses CNCopyCurrentNetworkInfo which, in iOS 12, needs the ‘Access WiFi Information’ capability. In XCode: Project > Capabilities > Access WiFi Information.
It looks like they’re currently developing a different method using sockets, so this may change in future.