async-network icon indicating copy to clipboard operation
async-network copied to clipboard

Bluetooth does not work after upgrading to iOS 8

Open willSapgreen opened this issue 9 years ago • 6 comments

To whom it may concern, After upgrading to iOS 8, the device cannot find each other. But if connecting with WiFi, the device can. Do you have this issue? Thank you.

willSapgreen avatar Jul 18 '15 01:07 willSapgreen

Sorry for the late answer. Is this still an issue or did you resolve this somehow?

jdiehl avatar Sep 25 '15 06:09 jdiehl

Hello jdiehl, can you reopen this issue? Because I still cannot make two device connect through Bluetooth in iOS9.1. And I am still digging in the root cause. Thank you.

willSapgreen avatar Nov 21 '15 17:11 willSapgreen

For me this reproduced on iOS10 also. The solution was to enable ipv6 for AsyncServer and AsyncConnection like this:

    // set up listening socket
    _listenSocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:AsyncNetworkDispatchQueue()];
    [self.listenSocket setIPv6Enabled:YES];

This thread discusses the similar issue and gives evidence that this really might be the correct solution: https://forums.developer.apple.com/thread/62306

vjjjv avatar Oct 22 '16 08:10 vjjjv

Does this patch resolve the issue?

jdiehl avatar Oct 23 '16 11:10 jdiehl

Yes, that works for us on iOS9 and iOS10 at least.

vjjjv avatar Oct 23 '16 13:10 vjjjv

@jdiehl Could you update to a new version and the CocoaPods spec for this?

chiahsien avatar Dec 14 '16 09:12 chiahsien