Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

MPCF behaves wrong on iOS 10 #1850

Open
dersim-davaod opened this issue Mar 31, 2017 · 4 comments
Open

MPCF behaves wrong on iOS 10 #1850

dersim-davaod opened this issue Mar 31, 2017 · 4 comments
Assignees

Comments

@dersim-davaod
Copy link
Member

No description provided.

@dersim-davaod
Copy link
Member Author

dersim-davaod commented Mar 31, 2017

For now looks like Multipeer Connectivity in iOS 10 is a bag of hurt.

For now we have following scenarios:
The invitation is sent and accepted, the connection state changes to connecting and then to not connected after about 10 seconds later. Right after changing the state to connecting a
[ViceroyTrace] [ICE][ERROR] ICEStopConnectivityCheck() found no ICE check with call id (108154439)
error is thrown.

I did some testing with two iOS 10.3 devices: it seems that on iOS 10, wifi-only multipeer is broken. It seems like it will only work if wifi is turned off AND BT is turned on (Crazy!). Some guys in the web confirmed that.
If I'm trying to establish connection, wifi-only device is discovered, followed by a dozen
[ViceroyTrace] [ICE][ERROR] Send BINDING_REQUEST failed(C01A0041).
errors and a connection state changes to not connected sometimes.

So it seems really unstable and I get errors like yours. Most of the time it only works the first time the app is launched after being built to a device, or under certain combinations of bluetooth and wifi.

There are some bugs (rdar://28388060, https://openradar.appspot.com/27243227) with Apple.
The bug is readily reproducible with Apple's MultipeerGroupChat sample app.
Also mailing list contains similar bug: https://lists.apple.com/archives/cocoa-dev/2016/Sep/msg00455.html
And as I said also we've run into the logs from ViceroyTrace that is similar to https://forums.developer.apple.com/thread/52289

Unfortunately no response from Apple Support in almost a month past now on developer forums.

So we continue investigation of this issue, because there is a probability that we missed something.
Also I found that IPv4 using might be the reason. We're trying to use IPv6 only for connecting.

@dersim-davaod
Copy link
Member Author

Also I want to play with encryptionPreference in MCSession object.

@strangfeld
Copy link

hey @dersim-davaod , is there any further update on this ? I'm lost on the same journey :(

@Ayyanchira
Copy link

How come it is possible that a project was working very well a month back.
I was working on a poc where I had this framework established. I had the code committed when everything was working properly. Now that I wanted to continue on that, and I took the code from github, its throwing that error.

And if there was a bug last year, how was I able to make the POC run properly a month ago?

Badly confused!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants