Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invite only does not seem to work? #2

Closed
lucletruc opened this issue Jul 1, 2017 · 2 comments
Closed

invite only does not seem to work? #2

lucletruc opened this issue Jul 1, 2017 · 2 comments

Comments

@lucletruc
Copy link

How do you call the viewcontroller for searching advertisers with the inviteOnly option? it's kind of unclear to me. Just setting the connection type to inviteOnly and then writing pcm.start does not seem to change anything :(

@rchatham
Copy link
Owner

rchatham commented Jul 1, 2017

You should call pcm.browserViewController(_ callback: @escaping (PeerBrowserViewControllerEvent)->Void) -> UIViewController? after calling start(). The .InviteOnly connection type requires you to present this interface or create your own for adding new members to a session. Only the .Automatic connection type will add available new members whenever calling start().

http://reidchatham.com/docs/PeerConnectivity/Classes/PeerConnectionManager.html#/s:FC16PeerConnectivity21PeerConnectionManager21browserViewControllerFFOS_30PeerBrowserViewControllerEventT_GSqCSo16UIViewController_

@rchatham rchatham closed this as completed Jul 3, 2017
@rchatham
Copy link
Owner

rchatham commented Jul 3, 2017

@lucletruc closing this issue. If you have any further questions about this feel free to reopen.

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

No branches or pull requests

2 participants