Good point, although it would mean people connecting and disconnecting from 
the chat pretty constantly (I guess I can reconnect them silently and pass 
them any info they missed). I guess I could warn them about it and maybe 
prompt them to change the screen timeout. I like your idea I wonder if that 
is how skype/fb messenger works etc. 

On Wednesday, May 25, 2016 at 7:04:27 AM UTC+8, Steve Hannah wrote:
>
> 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] 
> <javascript:>> 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] 
>> <javascript:>.
>> 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/fccf3393-1bab-493e-96da-487752e1a37e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to