Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Simple way to poll server from Xamarin.Forms client

$
0
0

Hi there
I have to implement a polling code to send a device App status to a server (I use WCF) and get a command from the server to be executed (if at all).
It polls each, say, 10 seconds regardless whether the app commands the screen or the device is hibernating (I mean it screen gets black while it left untouched for a time).
Can I just attach my PollingTimerClass to the Application.Current and start it in OnStart() event handler?
Again, it must poll when:
1. Application is active
2. Application is not active. It is pushed by another application on the screen
3. Device is a black screen, but it is not off

Thanks.


Viewing all articles
Browse latest Browse all 204402

Trending Articles