Push Notification Background Task Crashes Windows

2019-07-17 15:16发布

问题:

Has anyone else had problems running the push notification background task sample (Javascript) on the WP 8.1 emulator? Sample link is here.

When I run the sample app, register the background task, then send a raw notification via the notification simulator, the entire emulator crashes. See images below:

I'm wondering if anyone else has experienced this issue, or knows how to fix it. Maybe I'm doing something wrong, but it seems that an official sample application should work out of the box...

Just as a side note, I've tested this in my actual application with the same results; using both the notification simulator, and sending real raw notifications from my app server.

回答1:

According to the discussion below MS will try address the fix for the issue to the next major release: http://answers.flyppdevportal.com/categories/winphone/wpnotifications.aspx?ID=34232b54-e52a-40df-af54-c8d0d8f661b2

Victor Senkevich on Tue, 09 Dec 2014 16:58:17

Got the answer from MS Support:

"Hi Victor,

I received word back from our product group regarding this issue. Unfortunately we won’t be able to fix this in Windows Phone 8.1 but we will try to address the problem in the next major OS version." ....

I have already redeveloped this bg task in C#