Taras
Taras

Reputation: 2576

Is it possible to run an application in Windows Phone in background?

Is it possible to run an application in Windows Phone in background?

I want to port a chat application from Android to Windows Phone, that requires to have a persistent Internet connection, so user doesn't need to keep that application opened. When application received a message - need to show a notification.

On Android the connection logic was located in Service, but I didn't find analogues for Windows Phone.

Thanks!

Upvotes: 1

Views: 261

Answers (1)

Andrei Zhukouski
Andrei Zhukouski

Reputation: 3506

Background Agents and Background Services - That is what you need.

Scheduled Tasks and background agents allow an application to execute code in the background, even when the application is not running in the foreground. The different types of Scheduled Tasks are designed for different types of background processing scenarios and therefore have different behaviors and constraints. This topic describes the scheduling, duration, and limitations of scheduled tasks.

Also you need to check SO question about WP Toast Notification

Hope its help.

Upvotes: 2

Related Questions