Is there any way to make synchronous request to web server in windows phone 8 .
I am requesting a particular URL from a periodic task but this request is asynchronous but I want to make a synchronous request which is the requirement.
Can any one give me idea how to achieve this . Please put some code I am completely new to windows phone 8 development
You can’t make synchronous requests in WP, but you can make an asynchronous call from your background agent. Just make sure you don’t call
NotifyCompleteuntil after you’ve processed everything.(To be honest, if you’re developing for WP8 and not using
async/awaityou’re making it difficult for yourself)