Can I prevent my application from having the sockets closed when the user puts it in the background on Windows Phone 7 Mango?
If so, how would I go about doing it?
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, you cannot keep a persistent socket connection open when your application is not running, even in Mango.
You can:
PeriodicTaskthat will be called every 30 minutes, but can only execute for 10-15 seconds before being killedResourceIntensiveTaskthat will run when the phone is connected to power and will execute for as long as you like (or until the phone is disconnected from power)Both types of task have access to your application’s isolated storage but will execute in a separate application domain, so it won’t have access to variables and other application state.