Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Is it possible to keep a socket connected in background? (LongPolling)

$
0
0

Hi guys,

I'm writing an application in Xamarin.Forms which requires the current GPS coordinates each second to refresh them on other devices. I'm using SignalR as technology in my application, the transport protocol is LongPolling.

Is it possible to hold the socket connection alive even in background? On Android it seems to work fine so far, but when my iOS application enters background mode, the socket connection is like frozen.

How can I keep my socket connected in background?

Thanks a lot.


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>