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

Can't send/receive events between two iPhones #99

Closed
dmdque opened this issue Oct 18, 2016 · 3 comments
Closed

Can't send/receive events between two iPhones #99

dmdque opened this issue Oct 18, 2016 · 3 comments

Comments

@dmdque
Copy link

dmdque commented Oct 18, 2016

I have three clients running: one iPhone simulator client, one physical iPhone client, and one web client. (Both iPhone clients were loaded with XCode.) I also have a rails server configured with the key, secret, and app_id.

I'm able to broadcast an event from the server to all three clients. I'm also able to broadcast from either iPhone to the web client. But for some reason, the two iPhone clients can't send/receive events from each other.

I've set up authentication and am triggering the event client-my_event to the channel private-test_channel. I can't figure out why two of the clients can't communicate with each other, when they're able to send and receive events on the same channel/event.

I'm not sure what additional information I can provide to help debug this, so let me know if you have any hunches.

@hamchapman
Copy link
Contributor

Could you provide a sample project that displays this problem?

If not, please could you provide information about the specifics of the setup that produces this problem: version of Xcode, version of iOS, which device is being used to test (e.g. iPhone 7, 6S etc), which version of PusherSwift?

Thanks!

@dmdque
Copy link
Author

dmdque commented Oct 18, 2016

Thanks for replying so quickly Hamilton. I've set up a project here: https://github.com/dmdque/PusherClientExample

I'm using Slanger as the backend in my project, and it turns out that's the source of the problem. Once I switched to using Pusher as the backend, it worked.

I've opened an issue for the Slanger project, but if you've got any insight I'd love to hear it!

Thanks.

@hamchapman
Copy link
Contributor

You could try using an older version of libPusher to see if that works.

In terms of this being an issue for this library though, I don't think it is so I'm going to close it for now 👍

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