I think iOS would have to grant your app permission to run in the
background.   I'm not aware of any approved background modes that iOS has
for chat apps.  The ideal solution is to fall back to push notifications
when your app stops, and the reopen a web socket when the app starts again.

Steve

On Tue, May 24, 2016 at 12:34 PM, Gareth Murfin <[email protected]>
wrote:

> Is there a way to keep a web socket connection open when an iphone screen
> goes off? When I come back to my app the socket is disconnected. Cheers!
>
> --
> You received this message because you are subscribed to the Google Groups
> "CodenameOne Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at
> https://groups.google.com/group/codenameone-discussions.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/codenameone-discussions/505e683d-dfe1-43d8-8039-a055b005736d%40googlegroups.com
> <https://groups.google.com/d/msgid/codenameone-discussions/505e683d-dfe1-43d8-8039-a055b005736d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Steve Hannah
Software Developer
Codename One
http://www.codenameone.com

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKWXvmpifiUi4gNxPjMCRPS3%3DL8gRpCJViW6mZeAbNxe2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to