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

background mode #10

Open
danil-z opened this issue Jan 13, 2015 · 5 comments
Open

background mode #10

danil-z opened this issue Jan 13, 2015 · 5 comments

Comments

@danil-z
Copy link

danil-z commented Jan 13, 2015

Thank you for such great library.
I wonder if it can work in background mode.
I was playing around background mode and it works only in simulator. It doesn't work at real device. What do I do wrong?

@shuoli84
Copy link
Owner

I didn't test it, but I think it could work in background mode by:

  1. Only use web socket transport.
  2. Enable APP background mode.
  3. Set the voip flag in starscream. (The library use starscream underlying, and also one line code change.)
    Refer to app in the background daltoniam/Starscream#33.

@danil-z
Copy link
Author

danil-z commented Jan 18, 2015

Btw please check
danil-z@7e0c593
if skipReconnect = true need be set on close connection...
without it socket tried reconnect to server on close

@danil-z
Copy link
Author

danil-z commented Jan 18, 2015

I tested used your suggestions. It did not work.

@shuoli84
Copy link
Owner

shuoli84 commented Feb 6, 2015

thanks for the fix on skipReconnect. BTW, did you make it work in background mode?

@danil-z
Copy link
Author

danil-z commented Apr 2, 2015

I've switched to the Primus on the server. So I use SocketRocket for meantime but I'm planing to use starscream later on and implement Primus protocol in swift.

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