winphone 8에 notifycation을 사용하여 어플리케이션을 작성합니다. 내 어플리케이션은 30 초마다 서버에 URI를 계속 보내야합니다. 내 문제는, 내가 winphone의 알림을 사용하지만, 알림에서 웹 브라우저 호출 요청을 사용할 수 없습니다.윈도우 폰에 대한 알림
내 코드 :
public MainPage()
{
InitializeComponent();
var reminder = new Reminder("MyReminder")
{
Content = "Sending uri to server...",
BeginTime = DateTime.Now.AddSeconds(30),
webBrowser1.Navigate(new Uri("http://nhomxe.vn/device_register?uri="http://...", UriKind.Absolute));
};
ScheduledActionService.Add(reminder);
}
이 작업에 대한 백그라운드 작업이 있어야합니다. UR 배경 서비스를 실행하고 매 30 초마다 URL을 보냅니다. 알림은이 목적에 부합하지 않습니다. [참고] (http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh977055.aspx), [유사한 시나리오] (http://stackoverflow.com/questions/13514064)/how-to-run-in-background-in-windows-phone) – Eldho