سؤال

I am developing an application on windows phone 8 in which - if the application is running in background and an internal event gets fired then application should come to foreground. So, would like to know is there any way to bring application on foreground programmatically?

Thank you.

هل كانت مفيدة؟

المحلول

No way. Only the user can bring an application to the foreground.

What you could do is to create a Toast notification, to notify the user. That way, if he taps on the notification, the app would open.

Toast notifications for background agents for Windows Phone

ShellToast is one of the features that can be used in applications running in background:

Features that can be used while running in the background for Windows Phone 8

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top