Keeping Socket.IO connection alive after Android Crosswalk Embedded Webview onStop -


i have crosswalk embedded webview implementing socket.io , when activity stopped connection dropped after 20 seconds. how can keep connection alive?

  • crosswalk v12.41.296.9
  • socket.io v1.3.5
  • android sdk v22

if want keep connection alive have keep socket.io connection alive. socket.io connection keep alive have use service (not activity). service carry socket.io connection. when activity start service start, service run background of application , when activity stop service not stop, until tell him stop. can more knowledge service here.


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -